Project

General

Profile

« Previous | Next » 

Revision 70b49cba

Added by Ermal LUÇI over 11 years ago

Really need the interface where v6 is running toa dd the gateway/route rather than the one used for the configuration. This Fixes #3357

View differences:

etc/inc/system.inc
401 401
					$gatewayipv6 = $gateway['gateway'];
402 402
					$interfacegwv6 = $gateway['interface'];
403 403
					if (!empty($gateway['interface'])) {
404
						$defaultifv6 = get_real_interface($gateway['interface'], "inet6");
404
						$defaultifv6 = get_real_interface($gateway['interface']);
405 405
						if ($defaultifv6)
406 406
							@file_put_contents("{$g['tmp_path']}/{$defaultifv6}_defaultgwv6", $gateway['gateway']);
407 407
					}
......
419 419
		@touch("{$g['tmp_path']}/{$defaultif}_defaultgw");
420 420
	}	
421 421
	if ($foundgwv6 == false) {
422
		$defaultifv6 = get_real_interface("wan", "inet6");
422
		$defaultifv6 = get_real_interface("wan");
423 423
		$interfacegwv6 = "wan";
424 424
		$gatewayipv6 = get_interface_gateway_v6("wan");
425 425
		@touch("{$g['tmp_path']}/{$defaultif}_defaultgwv6");

Also available in: Unified diff