Commit 442fc75b authored by Ad Schellevis's avatar Ad Schellevis

filter.inc, cleanup. duplicate check for ip address, same logic is already in gwlb.inc.

parent f296f681
...@@ -895,9 +895,6 @@ function filter_generate_gateways() ...@@ -895,9 +895,6 @@ function filter_generate_gateways()
$int = $gateway['interface']; $int = $gateway['interface'];
$gwip = $gateway['gateway']; $gwip = $gateway['gateway'];
$route = ""; $route = "";
if (!is_ipaddr($gwip)) {
$gwip = get_interface_gateway($gateway['friendlyiface']);
}
if (is_ipaddr($gwip) && !empty($int)) { if (is_ipaddr($gwip) && !empty($int)) {
$route = "route-to ( {$int} {$gwip} )"; $route = "route-to ( {$int} {$gwip} )";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment