From 4e7c3114cade2f653d703d8a64db7bc4f15f18eb Mon Sep 17 00:00:00 2001 From: Erik Kapfer Date: Sat, 22 Feb 2014 08:04:24 +0100 Subject: [PATCH] index.cgi: Add /red/local-ipaddress query. Fixes# 10480. Added if loop for local-ipaddress query. --- html/cgi-bin/index.cgi | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- 2.39.2