Project

General

Profile

« Previous | Next » 

Revision 412a9cd0

Added by Chris Buechler about 9 years ago

Include interface scope on IPv6 static routes to link local gateway IPs. Ticket #6506

View differences:

src/etc/inc/system.inc
745 745

  
746 746
				if (is_subnet($ip)) {
747 747
					if (is_ipaddr($gatewayip)) {
748
						if (is_linklocal($gatewayip) == "6" && !strpos($gatewayip, '%')) {
749
							// add interface scope for link local v6 routes
750
							$gatewayip .= "%$interfacegw";
751
						}
748 752
						mwexec($cmd . escapeshellarg($gatewayip));
749 753
						if (isset($config['system']['route-debug'])) {
750 754
							$mt = microtime();

Also available in: Unified diff