We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a625e94 commit 4ba91d8Copy full SHA for 4ba91d8
pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/DHCPServer.inc
@@ -261,7 +261,7 @@ class DHCPServer extends Model {
261
# Loop through each defined interface
262
foreach ($this->get_config('interfaces', []) as $if_id => $if) {
263
# Skip this interface if it is not a static interface or the subnet value is greater than or equal to 31
264
- if (empty($if['ipaddr']) or $if['ipaddr'] !== 'static' or $if->subnet->value >= 31) {
+ if (empty($if['ipaddr']) or !is_ipaddrv4($if['ipaddr']) or $if->subnet->value >= 31) {
265
continue;
266
}
267
0 commit comments