mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #846. Do not reconfigure an 'none' configured interface.
This commit is contained in:
parent
2c7497cb68
commit
69695597ca
@ -40,7 +40,7 @@ function handle_argument_group($iface, $argument2) {
|
||||
global $config;
|
||||
|
||||
$ipaddr = $config['interfaces'][$iface]['ipaddr'];
|
||||
if (is_ipaddr($ipaddr)) {
|
||||
if (is_ipaddr($ipaddr) || empty($ipaddr)) {
|
||||
log_error("Hotplug event detected for {$iface} but ignoring since interface is configured with static IP ({$ipaddr})");
|
||||
$iface = get_real_interface($iface);
|
||||
exec("/usr/sbin/arp -d -i {$iface} -a");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user