Project

General

Profile

« Previous | Next » 

Revision 911a262f

Added by Seth Mos over 14 years ago

Prevent a IPv6 address from breaking system routing. This is a hack because we don't have the proper ip validation in 2.0 mainline

View differences:

etc/inc/system.inc
325 325
		mwexec("/bin/rm {$g['tmp_path']}/*_defaultgw", true);
326 326
		foreach	($config['gateways']['gateway_item'] as $gateway) {
327 327
			if (isset($gateway['defaultgw'])) {
328
				if(strstr($gateway['gateway'], ":"))
329
					break;
328 330
				if ($gateway['gateway'] == "dynamic")
329 331
					$gateway['gateway'] = get_interface_gateway($gateway['interface']);
330 332
				$gatewayip = $gateway['gateway'];

Also available in: Unified diff