summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-26 13:45:16 -0200
committerRenato Botelho <renato@netgate.com>2015-11-26 13:45:16 -0200
commit312c32c9a84f6698f2acbe3440f64446e9d7c807 (patch)
tree92580ac5a30fe450dffe7f2a5201b6b3126ada72
parent20ae62bfdad88b2930a1e49d77c0c18e7b674b60 (diff)
downloadpfsense-312c32c9a84f6698f2acbe3440f64446e9d7c807.zip
pfsense-312c32c9a84f6698f2acbe3440f64446e9d7c807.tar.gz
Simplify logic
-rw-r--r--src/usr/local/www/system.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 318784a..d94413c 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -290,10 +290,8 @@ if ($_POST) {
// Remove the route. Later calls will add the correct new route if needed.
if (is_ipaddrv4($olddnsservers[$dnscounter-1])) {
mwexec("/sbin/route delete " . escapeshellarg($olddnsservers[$dnscounter-1]));
- } else {
- if (is_ipaddrv6($olddnsservers[$dnscounter-1])) {
- mwexec("/sbin/route delete -inet6 " . escapeshellarg($olddnsservers[$dnscounter-1]));
- }
+ } else if (is_ipaddrv6($olddnsservers[$dnscounter-1])) {
+ mwexec("/sbin/route delete -inet6 " . escapeshellarg($olddnsservers[$dnscounter-1]));
}
}
}
OpenPOWER on IntegriCloud