From d3708a495cb61226056dedc6bf3453109d2d5ce3 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Sat, 29 Nov 2008 00:12:17 +0000 Subject: Add debug statement for pppoe and pptp issue with dynamic gateways. Perhaps it returns without a trim() --- etc/inc/gwlb.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc/inc') 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 */ -- cgit v1.1