summaryrefslogtreecommitdiffstats
path: root/usr/local/www/xmlrpc.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-08-29 14:30:38 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-08-29 14:30:38 -0300
commit85b3c597865c13cc7c6253332936ac266c74f164 (patch)
treeebb91a2f3ef09fad10c79ce8b24254b0ce043b81 /usr/local/www/xmlrpc.php
parent985ed11c5457dee4190d98678a6ff17cb5751f2b (diff)
downloadpfsense-85b3c597865c13cc7c6253332936ac266c74f164.zip
pfsense-85b3c597865c13cc7c6253332936ac266c74f164.tar.gz
Do not reconfigure dhcpd twice on secondary after config sync. Fixes #3797
Diffstat (limited to 'usr/local/www/xmlrpc.php')
-rwxr-xr-xusr/local/www/xmlrpc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php
index 5c6fdba..dc9e277 100755
--- a/usr/local/www/xmlrpc.php
+++ b/usr/local/www/xmlrpc.php
@@ -370,11 +370,15 @@ function filter_configure_xmlrpc($raw_params) {
relayd_configure();
require_once("openvpn.inc");
openvpn_resync_all();
- services_dhcpd_configure();
if (isset($config['dnsmasq']['enable']))
services_dnsmasq_configure();
elseif (isset($config['unbound']['enable']))
services_unbound_configure();
+ else
+ # Both calls above run services_dhcpd_configure(), then we just
+ # need to call it when them are not called to avoid restart dhcpd
+ # twice, as described on ticket #3797
+ services_dhcpd_configure();
local_sync_accounts();
return $xmlrpc_g['return']['true'];
OpenPOWER on IntegriCloud