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:
Stefan Schantl
2020-01-13 10:42:56 +01:00
parent 4caa0efc59
commit 611587cf29

View File

@@ -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";
}
}