]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
guardian.cgi: Prevent from blocking the used DNS servers.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 29 Apr 2016 09:06:40 +0000 (11:06 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 29 Jul 2016 11:17:56 +0000 (13:17 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/guardian.cgi

index 7ba49f443d26fd4163aa947aa55539cfb17a2ef8..7c39718932f21fa066acb44d66dc2e5d57a2d9e6 100644 (file)
@@ -319,7 +319,7 @@ if ($settings{'ACTION'} eq $Lang::tr{'save'}) {
        }
 
        # Check if the given input is one of the interface addresses or our gateway.
-       elsif ($input eq "$green" || $input eq "$blue" || $input eq "$orange" || $input eq "$red" || $input eq "$gateway") {
+       elsif ($input eq "$green" || $input eq "$blue" || $input eq "$orange" || $input eq "$red" || $input eq "$gateway" || $input eq "$dns1" || $input eq "$dns2") {
                $errormessage = "$Lang::tr{'guardian blocking of this address is not allowed'}";
        }