Revision 49b94d3a
Added by Chris Buechler over 17 years ago
usr/local/www/services_dhcp.php | ||
---|---|---|
50 | 50 |
if(!$iflist) |
51 | 51 |
$iflist = array("lan" => "LAN"); |
52 | 52 |
} else { |
53 |
/* if WAN is configured for anything other than static |
|
54 |
IP, do not allow DHCP server to be configured. */ |
|
55 |
if (!is_ipaddr($config['interfaces']['wan']['ipaddr'])) |
|
56 |
$singleif_nostaticip = true; |
|
53 | 57 |
$iflist = array("wan" => strtoupper($g['wan_interface_name'])); |
54 | 58 |
} |
55 | 59 |
|
... | ... | |
370 | 374 |
echo "</html>"; |
371 | 375 |
exit; |
372 | 376 |
} |
377 |
if ($singleif_nostaticip) { |
|
378 |
echo "<b>The DHCP Server can only be enabled on interfaces configured with static IP addresses. Your interface is not configured with a static IP.</b>"; |
|
379 |
include("fend.inc"); |
|
380 |
echo "</body>"; |
|
381 |
echo "</html>"; |
|
382 |
exit; |
|
383 |
} |
|
373 | 384 |
?> |
374 | 385 |
<?php if (file_exists($d_staticmapsdirty_path)): ?><p> |
375 | 386 |
<?php print_info_box_np("The static mapping configuration has been changed.<br>You must apply the changes in order for them to take effect.");?><br> |
Also available in: Unified diff
Do not allow DHCP Server to be used on WAN when it does not have a static IP address.
Single interface support
Appliance Project