summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-04-14 10:16:54 +0000
committerErmal <eri@pfsense.org>2014-04-14 10:16:54 +0000
commit69a5d970652257d380badf5c583c2b2b95e2e426 (patch)
tree298900c0f46584cfa92669b84e3cb0f4a5947730
parent7fd38f44ba327ab1cd1cad3ac76ebb169ccb12e0 (diff)
parentc58dbe2fa836d26e3cf4a2077a4b6d398edc763f (diff)
downloadpfsense-69a5d970652257d380badf5c583c2b2b95e2e426.zip
pfsense-69a5d970652257d380badf5c583c2b2b95e2e426.tar.gz
Merge pull request #1084 from phil-davis/patch-8
-rwxr-xr-xetc/rc.newwanip2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index 9c92099..201f085 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -92,7 +92,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}");
exit;
OpenPOWER on IntegriCloud