From 45f4d7628af3699be7c29ec4651916396182cd22 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 15 Apr 2014 07:06:13 -0700 Subject: [PATCH] Fix susbstr-substr typo I just got this error again on 14 Apr 2014 2.2 snapshot. I can see the fix in 2.1 branch. I could have sworn it got fixed in Master also, but I can't see it. So here is the fix for Master. --- etc/rc.newwanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 0f25107f37..8817f6ca31 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -95,7 +95,7 @@ log_error("rc.newwanip: on (IP address: {$curwanip}) (interface: {$interface_des * NOTE: Take care of openvpn and similar if you generate the event to reconfigure an interface. * i.e. OpenVPN might be in tap mode and not have an ip. */ -if (($curwanip == "0.0.0.0" || !is_ipaddr($curwanip)) && susbstr($interface_real, 0, 4) != "ovpn") { +if (($curwanip == "0.0.0.0" || !is_ipaddr($curwanip)) && substr($interface_real, 0, 4) != "ovpn") { log_error("rc.newwanip: Failed to update {$interface} IP, restarting..."); send_event("interface reconfigure {$interface}"); return;