Project

General

Profile

« Previous | Next » 

Revision 11bc553c

Added by Scott Ullrich over 19 years ago

OLSR fixes

View differences:

usr/local/www/services_dhcp.php
35 35
if ($_POST['if'])
36 36
	$if = $_POST['if'];
37 37
	
38
$iflist = array("lan" => "LAN");
38
/* if OLSRD is enabled, allow WAN to house DHCP. */
39
foreach($config['installedpackages']['olsrd']['config'] as $olsrd) {
40
		if($olsr['enable']) {
41
			$iflist = array("lan" => "LAN", "wan" => "WAN");
42
			break;
43
		}
44
}
45

  
46
if(!$iflist)
47
	$iflist = array("lan" => "LAN");
39 48

  
40 49
for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
41 50
	$oc = $config['interfaces']['opt' . $i];

Also available in: Unified diff