summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_dhcp.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/services_dhcp.php b/usr/local/www/services_dhcp.php
index defcdcf..6b9736b 100755
--- a/usr/local/www/services_dhcp.php
+++ b/usr/local/www/services_dhcp.php
@@ -140,6 +140,10 @@ if ($_POST) {
$config['dhcpd'][$if]['range']['to'] = $_POST['range_to'];
$config['dhcpd'][$if]['defaultleasetime'] = $_POST['deftime'];
$config['dhcpd'][$if]['maxleasetime'] = $_POST['maxtime'];
+ $previous = $config['dhcpd'][$if]['failover_peerip'];
+ if($previous <> $_POST['failover_peerip']) {
+ mwexec("rm -rf /var/dhcpd/var/db/*");
+ }
$config['dhcpd'][$if]['failover_peerip'] = $_POST['failover_peerip'];
unset($config['dhcpd'][$if]['winsserver']);
OpenPOWER on IntegriCloud