diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 18:54:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2004-11-21 18:54:14 +0000 |
commit | 567c808b6cb631649a3a83f8adfe999339682537 (patch) | |
tree | 6e5851deb59fb8f287e12038dc31ad431d60968e /usr/local | |
parent | 0f282d7a169148d11584cdbe072b983bc884eab0 (diff) | |
download | pfsense-567c808b6cb631649a3a83f8adfe999339682537.zip pfsense-567c808b6cb631649a3a83f8adfe999339682537.tar.gz |
Correct a bug where someone could not turn off FastRouting
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/system_routes.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index 6021362..59f1fe5 100755 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -56,12 +56,14 @@ if ($_POST) { } } } +} - if ($_POST['enablefastrouting']) { - $config['staticroutes']['enablefastrouting'] = "enabled"; - write_config(); - } - +if ($_POST['enablefastrouting'] == "on") { + $config['staticroutes']['enablefastrouting'] = "enabled"; + write_config(); +} else { + unset($config['staticroutes']['enablefastrouting']); + write_config(); } if ($_GET['act'] == "del") { |