diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-30 18:13:52 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-30 18:13:52 +0000 |
commit | 82a1ee994d218e33e76badd2359168d1bac60cef (patch) | |
tree | 3ec8a0af1006f435cea67c0c232165154e654d54 | |
parent | dd86dccfbe42f136153e9d7db7b40166c11d3ae4 (diff) | |
download | pfsense-82a1ee994d218e33e76badd2359168d1bac60cef.zip pfsense-82a1ee994d218e33e76badd2359168d1bac60cef.tar.gz |
Remove debugging
-rw-r--r-- | etc/inc/gwlb.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 945941b..c4de5db 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -227,8 +227,7 @@ function return_gateways_array() { if(interface_has_gateway($ifname)) { $gateway = array(); $gateway['gateway'] = get_interface_gateway($ifname); - log_error("Interface $friendly has a gateway, found gateway '{$gateway['gateway']}'"); - /* Loopback for dynamic interfaces without a IP */ + /* Loopback dummy for dynamic interfaces without a IP */ if(!is_ipaddr(trim($gateway['gateway']))) { $gateway['gateway'] = "127.0.0.2"; } @@ -236,6 +235,8 @@ function return_gateways_array() { * do not add dynamic gateways if it is also found * in the gateways array. * XXX: NB: Can this ever happen?! + * smos@ get_interface_gateway() also succeeds for + * static gateways, thus they need to be excluded */ if(is_array($config['gateways']['gateway_item'])) { foreach($config['gateways']['gateway_item'] as $gateway_item) { @@ -258,8 +259,6 @@ function return_gateways_array() { $gateway['attribute'] = "system"; $gateway['interface'] = "{$ifname}"; $gateways_arr[] = $gateway; - $debugstr = print_r($gateway, true); - log_error("proceeding with gateway config {$debugstr}"); } } |