From: Stefan Schantl Date: Fri, 29 Apr 2016 09:06:40 +0000 (+0200) Subject: guardian.cgi: Prevent from blocking the used DNS servers. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=62fd0e6fc7c946f2c9f11d34062c555d95e8a272;p=people%2Fms%2Fipfire-2.x.git guardian.cgi: Prevent from blocking the used DNS servers. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/guardian.cgi b/html/cgi-bin/guardian.cgi index 7ba49f443d..7c39718932 100644 --- a/html/cgi-bin/guardian.cgi +++ b/html/cgi-bin/guardian.cgi @@ -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'}"; }