mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
Routing-gateways: select current IPv6 field in getInterfaceGateway(), closes https://github.com/opnsense/core/issues/4494
This commit is contained in:
parent
c02155630e
commit
80d7eb0ea7
@ -410,7 +410,8 @@ class Gateways
|
||||
}
|
||||
// The interface might have a gateway configured
|
||||
if (isset($this->configHandle->interfaces->$interface)) {
|
||||
$intf_gateway = $this->configHandle->interfaces->$interface->gateway;
|
||||
$gwfield = $ipproto == "inet" ? "gateway" : "gatewayv6";
|
||||
$intf_gateway = $this->configHandle->interfaces->$interface->$gwfield;
|
||||
} else {
|
||||
$intf_gateway = null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user