diff options
author | smos <seth.mos@dds.nl> | 2011-01-17 23:10:55 +0100 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2011-01-17 23:11:50 +0100 |
commit | 96e889fc1e938187dd18238d80e3163e1aca3006 (patch) | |
tree | 5cf193089da677060e030c890f0c09a00b639137 /etc/inc/system.inc | |
parent | 2b7ca9b2d908cb04433477c3be52bd20d47acf75 (diff) | |
download | pfsense-96e889fc1e938187dd18238d80e3163e1aca3006.zip pfsense-96e889fc1e938187dd18238d80e3163e1aca3006.tar.gz |
Specify the -inet family so that accidental IPv6 addresses here don't break the system routing.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 0bf9007..0cdd5b4 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -376,7 +376,7 @@ function system_routing_configure($interface = "") { $action = "change"; } log_error("ROUTING: $action default route to $gatewayip"); - mwexec("/sbin/route {$action} default " . escapeshellarg($gatewayip)); + mwexec("/sbin/route {$action} -inet default " . escapeshellarg($gatewayip)); } } @@ -399,10 +399,10 @@ function system_routing_configure($interface = "") { $action = "change"; if (is_ipaddr($gatewayip)) { - mwexec("/sbin/route {$action} " . escapeshellarg($rtent['network']) . + mwexec("/sbin/route {$action} -inet " . escapeshellarg($rtent['network']) . " " . escapeshellarg($gatewayip)); } else if (!empty($interfacegw)) { - mwexec("/sbin/route {$action} " . escapeshellarg($rtent['network']) . + mwexec("/sbin/route {$action} -inet " . escapeshellarg($rtent['network']) . " -iface " . escapeshellarg($interfacegw)); } } |