mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Another address family check for dynamic gateways, v4 has dynamic, v6 has dynamic6 as string.
This commit is contained in:
parent
96bddaf35a
commit
748ff86fe2
@ -696,6 +696,15 @@ function validate_address_family($ipaddr, $gwname) {
|
||||
$v4gw = true;
|
||||
if(is_ipaddrv6(lookup_gateway_ip_by_name($gwname)))
|
||||
$v6gw = true;
|
||||
/* are they dynamic */
|
||||
switch($gwname) {
|
||||
case "dynamic":
|
||||
$v4gw = true;
|
||||
break;
|
||||
case "dynamic6":
|
||||
$v6gw = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if($v4ip && $v4gw)
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user