mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add debug statement for pppoe and pptp issue with dynamic gateways.
Perhaps it returns without a trim()
This commit is contained in:
parent
f8a33850ed
commit
d3708a495c
@ -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 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user