From: Erik Kapfer Date: Sat, 22 Feb 2014 07:04:24 +0000 (+0100) Subject: index.cgi: Add /red/local-ipaddress query. X-Git-Tag: v2.15-rc1~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4e7c3114cade2f653d703d8a64db7bc4f15f18eb;p=people%2Fpmueller%2Fipfire-2.x.git 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 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 {