diff --git a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.phpindex d17bc382c..4a88ba6cf 100644--- a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php+++ b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php@@ -245,6 +245,13 @@ class Gateways } $gwkey = $this->newKey($thisconf['priority'], !empty($thisconf['defaultgw'])); $this->cached_gateways[$gwkey] = $thisconf;+ } elseif (file_exists("/tmp/{$ifname}{$isuffix}_router{$fsuffix}")) {+ $thisconf['gateway'] = trim(@file_get_contents("/tmp/{$ifname}{$isuffix}_router{$fsuffix}"));+ if (empty($thisconf['monitor_disable']) && empty($thisconf['monitor'])) {+ $thisconf['monitor'] = $thisconf['gateway'];+ }+ $gwkey = $this->newKey($thisconf['priority'], !empty($thisconf['defaultgw']));+ $this->cached_gateways[$gwkey] = $thisconf; } elseif (!empty($ifcfg['gateway_interface']) || substr($ifcfg['if'], 0, 5) == "ovpnc") { // XXX: ditch ovpnc in a major upgrade in the future, supersede with interface setting // gateway_interface
opnsense-patch f4e2728b81 866ec6df74
opnsense-patch -a mhofer117 bbad554d3c