Project

General

Profile

« Previous | Next » 

Revision f5d3a5ce

Added by Ermal LUÇI almost 15 years ago

Do not support anymore an ip in the 'gateway' section of an interface.

View differences:

etc/inc/gwlb.inc
501 501
        $gw = NULL;
502 502

  
503 503
        $gwcfg =& $config['interfaces'][$interface];
504
        if (is_ipaddr($gwcfg['gateway']))
505
                $gw = $gwcfg['gateway'];
506
        else if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) {
504
        if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) {
507 505
               	foreach($config['gateways']['gateway_item'] as $gateway) {
508 506
                        if ($gateway['name'] == $gwcfg['gateway']) {
509 507
                                $gw = $gateway['gateway'];

Also available in: Unified diff