Project

General

Profile

« Previous | Next » 

Revision 68ad6d22

Added by Scott Ullrich over 17 years ago

  • If the LAN interface exists, do not allow DHCP server on WAN.
  • If the LAN interface does not exist, do not allow DHCP server on LAN.

View differences:

etc/rc.initial.setlanip
163 163
		unset($config['system']['webgui']['noantilockout']);
164 164
	}
165 165

  
166
	if($config['interfaces']['lan']) {
167
		unset($config['dhcpd']['wan']);		
168
	}
169

  
170
	if(!$config['interfaces']['lan']) 	
171
		unset($config['dhcpd']['lan']);
172
	}
173

  
166 174
	write_config(gettext("{$interface} IP configuration from console menu"));
167 175
	interfaces_lan_configure();
168 176

  
......
182 190

  
183 191
	fgets($fp);
184 192
	fclose($fp);
185
	
193
		
186 194
?>

Also available in: Unified diff