diff options
author | Seth Mos <seth.mos@dds.nl> | 2011-10-11 21:55:09 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@dds.nl> | 2011-10-11 21:56:43 +0200 |
commit | ad700f39a25ed94e03e0d1509a19b011db9f71ea (patch) | |
tree | e1a8818b6b88777de2d8dc0d798d13e4096702ad /usr/local/www/system_routes.php | |
parent | df39dd8ab4e41c3b668ce8dd9c8b86d7dcceb743 (diff) | |
download | pfsense-ad700f39a25ed94e03e0d1509a19b011db9f71ea.zip pfsense-ad700f39a25ed94e03e0d1509a19b011db9f71ea.tar.gz |
Fix static routes editing and removal for both IPv4 and IPv6. Changing a route should clean up too.
Fix ticket #1892
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-x | usr/local/www/system_routes.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index 959c940..64484a7 100755 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -81,7 +81,9 @@ if ($_POST) { if ($_GET['act'] == "del") { if ($a_routes[$_GET['id']]) { $changedesc .= gettext("removed route to") . " " . $a_routes[$_GET['id']['route']]; - mwexec("/sbin/route delete " . escapeshellarg($a_routes[$_GET['id']]['network'])); + if(is_ipaddrv6($a_routes[$_GET['id']]['network'])) + $family = "-inet6"; + mwexec("/sbin/route delete {$family} " . escapeshellarg($a_routes[$_GET['id']]['network'])); unset($a_routes[$_GET['id']]); write_config($changedesc); header("Location: system_routes.php"); |