summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2004-11-21 18:54:14 +0000
committerScott Ullrich <sullrich@pfsense.org>2004-11-21 18:54:14 +0000
commit567c808b6cb631649a3a83f8adfe999339682537 (patch)
tree6e5851deb59fb8f287e12038dc31ad431d60968e /usr/local/www/system_routes.php
parent0f282d7a169148d11584cdbe072b983bc884eab0 (diff)
downloadpfsense-567c808b6cb631649a3a83f8adfe999339682537.zip
pfsense-567c808b6cb631649a3a83f8adfe999339682537.tar.gz
Correct a bug where someone could not turn off FastRouting
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-xusr/local/www/system_routes.php12
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") {
OpenPOWER on IntegriCloud