X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=html%2Fcgi-bin%2Findex.cgi;fp=html%2Fcgi-bin%2Findex.cgi;h=0b38237b6a3c6de732f4e0d4f0edc47274a68223;hp=ca98e7211f0b3d7eb7fbc2db072181ce6e2cff7d;hb=4e7c3114cade2f653d703d8a64db7bc4f15f18eb;hpb=52ecb188bcc2fd922fca816f80b6db609d89002a diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index ca98e7211f..0b38237b6a 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -158,6 +158,11 @@ if ( ( $pppsettings{'VALID'} eq 'yes' && $modemsettings{'VALID'} eq 'yes' ) || ( close IPADDR; chomp ($ipaddr); } + if (open(IPADDR,"${General::swroot}/red/local-ipaddress")) { + $ipaddr = ; + close IPADDR; + chomp ($ipaddr); + } } elsif ($modemsettings{'VALID'} eq 'no') { print "$Lang::tr{'modem settings have errors'}\n \n"; } else {