diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-02-20 21:02:12 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-02-20 21:02:12 +0000 |
commit | da0ea3522342ea0ba915962eccb9f072206d505b (patch) | |
tree | eced050071dc677c0d8364791661217feb3bf619 /usr/local | |
parent | 9e7889d015b43394b761e0e28349cdd8696ff49f (diff) | |
download | pfsense-da0ea3522342ea0ba915962eccb9f072206d505b.zip pfsense-da0ea3522342ea0ba915962eccb9f072206d505b.tar.gz |
arp -da static entries after turning off static option
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/services_dhcp.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php index 6b9736b..05fd9cf 100755 --- a/usr/local/www/services_dhcp.php +++ b/usr/local/www/services_dhcp.php @@ -171,10 +171,12 @@ if ($_POST) { else unset($config['dhcpd'][$if]['enable']); - if($_POST['staticarp'] == "yes") + if($_POST['staticarp'] == "yes") { $config['dhcpd'][$if]['staticarp'] = true; - else + } else { unset($config['dhcpd'][$if]['staticarp']); + mwexec("/usr/sbin/arp -da"); + } write_config(); |