diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-26 13:45:16 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-26 13:45:16 -0200 |
commit | 312c32c9a84f6698f2acbe3440f64446e9d7c807 (patch) | |
tree | 92580ac5a30fe450dffe7f2a5201b6b3126ada72 /src | |
parent | 20ae62bfdad88b2930a1e49d77c0c18e7b674b60 (diff) | |
download | pfsense-312c32c9a84f6698f2acbe3440f64446e9d7c807.zip pfsense-312c32c9a84f6698f2acbe3440f64446e9d7c807.tar.gz |
Simplify logic
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/system.php | 6 |
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])); } } } |