From: Erik Kapfer Date: Sat, 22 Feb 2014 07:04:24 +0000 (+0100) Subject: index.cgi: Add /red/local-ipaddress query. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=4e7c3114cade2f653d703d8a64db7bc4f15f18eb;hp=52ecb188bcc2fd922fca816f80b6db609d89002a index.cgi: Add /red/local-ipaddress query. Fixes# 10480. Added if loop for local-ipaddress query. --- diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index ca98e7211..0b38237b6 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 {