diff options
author | Phil Davis <phil.davis@inf.org> | 2014-04-15 07:06:13 -0700 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-04-15 07:06:13 -0700 |
commit | 45f4d7628af3699be7c29ec4651916396182cd22 (patch) | |
tree | e95900cfd408ec3c93a09d4c0c5984a2c3873179 /etc | |
parent | d35b367a3c8e53419962ea2781e73af7c6de4668 (diff) | |
download | pfsense-45f4d7628af3699be7c29ec4651916396182cd22.zip pfsense-45f4d7628af3699be7c29ec4651916396182cd22.tar.gz |
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.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 0f25107..8817f6c 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; |