Merge pull request #1383 from phil-davis/patch-10

This commit is contained in:
Renato Botelho 2014-12-12 14:49:28 -02:00
commit 3bc55eee36

View File

@ -284,7 +284,7 @@ function console_configure_ip_address($version) {
echo "\n" . sprintf(gettext("Enter the new %s %s subnet bit count:"),
$upperifname, $label_IPvX) . "\n> ";
$intbits = chop(fgets($fp));
$intbits_ok = is_numeric($intbits) && (($intbits >= 1) || ($intbits <= $maxbits));
$intbits_ok = is_numeric($intbits) && (($intbits >= 1) && ($intbits <= $maxbits));
$restart_dhcpd = true;
if ($version === 4 && $intbits < $maxbits) {