Skip to content

Commit 2544813

Browse files
fix(DHCPServer): ensure dhcp servers are initialized as assoc arrays #787
1 parent 75e73d2 commit 2544813

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/DHCPServer.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class DHCPServer extends Model {
267267

268268
# Otherwise, make this interface eligible for a DHCP server
269269
if (!in_array($if_id, $ifs_using_dhcp_server)) {
270-
$this->set_config(path: "$this->config_path/$if_id", value: []);
270+
$this->set_config(path: "$this->config_path/$if_id", value: ['range' => ['from' => '', 'to' => '']]);
271271
}
272272
}
273273
}

0 commit comments

Comments
 (0)