From 62fd0e6fc7c946f2c9f11d34062c555d95e8a272 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 29 Apr 2016 11:06:40 +0200 Subject: [PATCH] guardian.cgi: Prevent from blocking the used DNS servers. Signed-off-by: Stefan Schantl --- html/cgi-bin/guardian.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'}"; } -- 2.39.5