mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
dns.cgi: Fix id compare when adding a new nameserver.
I do not know why perl when using "le" which means "less-or-equal" defines a "10" as "1". This commit fixes the issue that it was not possible to add more than 8 nameservers. Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -168,7 +168,7 @@ if (($cgiparams{'SERVERS'} eq $Lang::tr{'save'}) || ($cgiparams{'SERVERS'} eq $L
|
||||
|
||||
# The first allowed id is 3 to keep space for
|
||||
# possible ISP assigned DNS servers.
|
||||
if ($id le "2") {
|
||||
if ($id <= "2") {
|
||||
$id = "3";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user