summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-29 00:12:17 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-29 00:12:17 +0000
commitd3708a495cb61226056dedc6bf3453109d2d5ce3 (patch)
treeb208090f6aeb5b284fca073668ac6c8b5b7156c8 /etc
parentf8a33850edcbe2e895c89ebaf614a5649326f6d0 (diff)
downloadpfsense-d3708a495cb61226056dedc6bf3453109d2d5ce3.zip
pfsense-d3708a495cb61226056dedc6bf3453109d2d5ce3.tar.gz
Add debug statement for pppoe and pptp issue with dynamic gateways.
Perhaps it returns without a trim()
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/gwlb.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index bf416f9..1d0acf0 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -231,9 +231,10 @@ function return_gateways_array() {
$gateway['gateway'] = lookup_gateway_ip_by_name($config['interfaces'][$friendly]['gateway']);
} else {
$gateway['gateway'] = get_interface_gateway($ifname);
+ echo log_error("Found dynamic gateway '{$gateway['gateway']}'");
}
/* Loopback for dynamic interfaces without a IP */
- if(!is_ipaddr($gateway['gateway'])) {
+ if(!is_ipaddr(trim($gateway['gateway']))) {
$gateway['gateway'] = "127.0.0.2";
}
/* do not add dynamic gateways if it is also found in the gateways array */
OpenPOWER on IntegriCloud