Revision 5197e3e3
Added by Renato Botelho almost 6 years ago
src/etc/inc/services.inc | ||
---|---|---|
548 | 548 |
|
549 | 549 |
EOD; |
550 | 550 |
|
551 |
if (!isset($dhcpifconf['disablepingcheck'])) { |
|
552 |
$dhcpdconf .= "ping-check true;\n"; |
|
553 |
} else { |
|
554 |
$dhcpdconf .= "ping-check false;\n"; |
|
555 |
} |
|
556 |
|
|
557 | 551 |
if (!isset($dhcpifconf['disableauthoritative'])) { |
558 | 552 |
$dhcpdconf .= "authoritative;\n"; |
559 | 553 |
} |
... | ... | |
1022 | 1016 |
$dhcpdconf .= " max-lease-time {$dhcpifconf['maxleasetime']};\n"; |
1023 | 1017 |
} |
1024 | 1018 |
|
1019 |
if (!isset($dhcpifconf['disablepingcheck'])) { |
|
1020 |
$dhcpdconf .= " ping-check true;\n"; |
|
1021 |
} else { |
|
1022 |
$dhcpdconf .= " ping-check false;\n"; |
|
1023 |
} |
|
1024 |
|
|
1025 | 1025 |
// netbios-name* |
1026 | 1026 |
if (is_array($dhcpifconf['winsserver']) && $dhcpifconf['winsserver'][0]) { |
1027 | 1027 |
$dhcpdconf .= " option netbios-name-servers " . join(",", $dhcpifconf['winsserver']) . ";\n"; |
Also available in: Unified diff
Fix #9285: Move ping-check option from global to per-subnet