diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-29 16:40:24 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-29 16:40:24 +0000 |
commit | 7cc7e84db4a545c1a0a9d0f84e871763376156f9 (patch) | |
tree | ad6a057800c0d33f6e5572b40d3a8ad9438bce83 /etc/inc | |
parent | 9d25708602d555918977423e47adb10665af7fdd (diff) | |
download | pfsense-7cc7e84db4a545c1a0a9d0f84e871763376156f9.zip pfsense-7cc7e84db4a545c1a0a9d0f84e871763376156f9.tar.gz |
Remove the LAN IP address if user has cleared value
Ticket #654
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 92ff17d..3db0357 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -94,6 +94,10 @@ function interfaces_lan_configure() { $lancfg = $config['interfaces']['lan']; + /* if user has removed ip address, clear it*/ + if($lancfg['ipaddr'] == "") + mwexec("/sbin/ifconfig {$lancfg['if']} delete"); + /* wireless configuration? */ if (is_array($lancfg['wireless'])) interfaces_wireless_configure($lancfg['if'], $lancfg['wireless']); |