diff options
author | jim-p <jimp@pfsense.org> | 2013-11-11 13:09:03 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-11-11 13:10:46 -0500 |
commit | 58ee84b4b2f9daba87e44abf663026c6266a7cd8 (patch) | |
tree | 84a8be57c8fa92bae1afc331a8bad7f5ca3a0504 /etc | |
parent | 892d23bc7a5dc369bfcbbf03dda428a77322bda9 (diff) | |
download | pfsense-58ee84b4b2f9daba87e44abf663026c6266a7cd8.zip pfsense-58ee84b4b2f9daba87e44abf663026c6266a7cd8.tar.gz |
If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. Fixes #3313
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.newwanip | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index beeb0b8..43af7f1 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -70,6 +70,12 @@ if(empty($argument)) { $interface_real = $argument; } +/* If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. #3313 */ +if (is_array($config['interfaces'][$interface]) && !isset($config['interfaces'][$interface]['enable'])) { + log_error("Interface is disabled, nothing to do."); + return; +} + if(empty($argument)) $curwanip = get_interface_ip(); else { |