summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
-rw-r--r--etc/inc/interfaces.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 0d96548..741cf9c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1739,7 +1739,7 @@ EOD;
* interface in question to avoid problems with complicated routing
* topologies
*/
- if (isset($config['system']['bypassstaticroutes']) && is_array($config['staticroutes']['route']) && count($config['staticroutes']['route'])) {
+ if (isset($config['filter']['bypassstaticroutes']) && is_array($config['staticroutes']['route']) && count($config['staticroutes']['route'])) {
$ipfrules .= "anchor \"staticrouted\" \n";
foreach ($config['staticroutes']['route'] as $route) {
$realif = guess_interface_from_ip(lookup_gateway_ip_by_name($route['gateway']));
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index c7eab73..44e11b2 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2185,7 +2185,7 @@ function get_real_interface($interface = "wan") {
}
function guess_interface_from_ip($ipaddress) {
- $ret = `/usr/bin/netstat -rn | /usr/bin/awk '/^{$ipaddress}/ {print \$6}'`;
+ $ret = `/usr/bin/netstat -rn | /usr/bin/awk '/^{$ipaddress}/ {print "%s", \$6}'`;
if (empty($ret))
return false;
OpenPOWER on IntegriCloud