Skip to content

Commit 88b5d7d

Browse files
fix(DHCPServer): use new pfsense dhcp server apply method
2.8.0+ introduced a new method to apply dhcp server changes. This commit updates the codebase to use that method instead of the old services_dhcpd_configure() method.
1 parent 2544813 commit 88b5d7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Dispatchers/DHCPServerApplyDispatcher.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class DHCPServerApplyDispatcher extends Dispatcher {
1313
* Reloads the DHCP server and associated services.
1414
*/
1515
protected function _process(mixed ...$arguments): void {
16-
services_dhcpd_configure();
16+
dhcp_apply_changes();
1717
clear_subsystem_dirty('dhcpd');
1818
}
1919
}

0 commit comments

Comments
 (0)