From aea7da2f9e6dc36e56dd1d2f2ae824a2138dd407 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 28 Nov 2014 08:48:58 +0545 Subject: [PATCH] Fixup misleading comment This comment was misleading - this is the IP of whatever interface that is being processed, not just WAN IP. Might as well fix while noticed, to save someone else from misunderstanding in future. The curwanip var is really "Current Interface IP" and could be called curinterfaceip, but I was not about to search/replace all that at this point, since it is only a var name. --- etc/rc.newwanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 888903e871..28b7090a0a 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -119,7 +119,7 @@ if (file_exists("{$g['vardb_path']}/{$interface}_cacheip")) /* regenerate resolv.conf if DNS overrides are allowed */ system_resolvconf_generate(true); -/* write current WAN IP to file */ +/* write the current interface IP to file */ if (is_ipaddr($curwanip)) @file_put_contents("{$g['vardb_path']}/{$interface}_ip", $curwanip);