summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-02-09 08:49:33 +0000
committerErmal <eri@pfsense.org>2013-02-09 08:49:33 +0000
commitaeaf0a67adca3e64e1bd889974368319b0d6d9c9 (patch)
tree50194d62d6f56cf22de5b609ecf11729863e1ad9 /usr/local/www/system_routes.php
parent82cc8a36d365acf1471359be3a4034bf35381bda (diff)
downloadpfsense-aeaf0a67adca3e64e1bd889974368319b0d6d9c9.zip
pfsense-aeaf0a67adca3e64e1bd889974368319b0d6d9c9.tar.gz
Set family here to avoid any ambiguity
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-xusr/local/www/system_routes.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php
index 5b84b1c..d86c009 100755
--- a/usr/local/www/system_routes.php
+++ b/usr/local/www/system_routes.php
@@ -83,6 +83,7 @@ if ($_GET['act'] == "del") {
$changedesc .= gettext("removed route to") . " " . $a_routes[$_GET['id']['route']];
list($ip, $mask) = explode("/", $a_routes[$_GET['id']]['network']);
if (is_ipaddr($ip)) {
+ $family = "";
if(is_ipaddrv6($ip))
$family = "-inet6";
mwexec("/sbin/route delete {$family} " . escapeshellarg($a_routes[$_GET['id']]['network']));
OpenPOWER on IntegriCloud