From aeaf0a67adca3e64e1bd889974368319b0d6d9c9 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sat, 9 Feb 2013 08:49:33 +0000 Subject: Set family here to avoid any ambiguity --- usr/local/www/system_routes.php | 1 + 1 file changed, 1 insertion(+) (limited to 'usr') 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'])); -- cgit v1.1