mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
guardian.cgi: Prevent from blocking the used DNS servers.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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'}";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user