]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/guardian.cgi
guardian.cgi: Prevent from blocking the used DNS servers.
[people/pmueller/ipfire-2.x.git] / 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'}";
        }