Fix obviously broken test in rc.initial.setlanip
IMO might as well back-port any obviously wrong code to 2.1 branch, just in case anybody on 2.1.n cares for it or there is a need for another 2.1.n release.
This commit is contained in:
parent
5711c44624
commit
798d8644d6
|
@ -496,7 +496,7 @@ if ($intip6 != '') {
|
|||
}
|
||||
|
||||
if ($intip != '' || $intip6 != '') {
|
||||
if (count($ifdescrs) == "1" or $interface = "lan") {
|
||||
if (count($ifdescrs) == "1" or $interface == "lan") {
|
||||
if ($debug) {
|
||||
echo "ifdescrs count is " . count($ifdescrs) . "\n";
|
||||
echo "interface is {$interface} \n";
|
||||
|
|
Reference in New Issue