mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Reload DHCP server after making changes
This commit is contained in:
parent
764c5b7968
commit
a9d6bfc4ac
@ -82,7 +82,7 @@
|
||||
exit(0);
|
||||
}
|
||||
} while (!is_ipaddr($dhcpendip));
|
||||
|
||||
$restart_dhcpd = true;
|
||||
$config['dhcpd']['lan']['enable'] = true;
|
||||
$config['dhcpd']['lan']['range']['from'] = $dhcpstartip;
|
||||
$config['dhcpd']['lan']['range']['to'] = $dhcpendip;
|
||||
@ -106,6 +106,9 @@
|
||||
write_config("LAN IP configuration from console menu");
|
||||
interfaces_lan_configure();
|
||||
|
||||
if($restart_dhcpd)
|
||||
services_dhcpd_configure();
|
||||
|
||||
echo <<<EOD
|
||||
|
||||
The LAN IP address has been set to $lanip/$lanbits.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user