Skip to content

Commit

Permalink
Routing, gateways. Technically we could add tunnel gateways automatic…
Browse files Browse the repository at this point in the history
…ally, but since you can easily add them manually, we better start without these and only add the ones found in the /tmp/XX_router[XX] files. for #2279
  • Loading branch information
AdSchellevis committed Apr 16, 2019
1 parent b5adb0c commit 172f5df
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php
Expand Up @@ -222,17 +222,6 @@ public function getGateways()
}
$gwkey = $this->newKey($thisconf['priority'], !empty($thisconf['defaultgw']));
$this->cached_gateways[$gwkey] = $thisconf;
// } elseif (!empty($this->ifconfig[$thisconf["if"]]["tunnel"]["dest_addr"])) {
// // tunnel devices with a known endpoint
// $thisconf['gateway'] = $this->ifconfig[$thisconf["if"]]["tunnel"]["dest_addr"];
// $tunnel_ipproto = strpos($thisconf['gateway'], ":") != false ? "inet6" : "inet";
// if ($tunnel_ipproto == $ipproto) {
// 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 (self::convertType($ipproto, $ifcfg) != null) {
// other predefined types, only bound by interface (e.g. openvpn)
$gwkey = $this->newKey($thisconf['priority'], !empty($thisconf['defaultgw']));
Expand Down

0 comments on commit 172f5df

Please sign in to comment.