Project

General

Profile

« Previous | Next » 

Revision cc807fbf

Added by Viktor Gurov over 4 years ago

route_add_or_change() add linklocal gateway scope. Fixes #11713

(cherry picked from commit cca31114b0ac041e41865c586d587558f82979d6)

View differences:

src/etc/inc/util.inc
2846 2846
		$params .= " -iface {$iface}";
2847 2847
	}
2848 2848
	if (is_ipaddr($gw)) {
2849
		/* set correct linklocal gateway address,
2850
		 * see https://redmine.pfsense.org/issues/11713 */
2851
		if (is_linklocal($gw) && empty(get_ll_scope($gw))) {
2852
			$routeget = route_get($gw, 'inet6', true);
2853
			$gw .= "%" . $routeget[0]['interface-name'];
2854
		}
2849 2855
		$params .= " " . $gw;
2850 2856
	}
2851 2857

  

Also available in: Unified diff