From c58dbe2fa836d26e3cf4a2077a4b6d398edc763f Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 14 Apr 2014 02:10:28 -0700 Subject: Fix typo --- etc/rc.newwanip | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') 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; -- cgit v1.1