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

This commit is contained in:
Chris Buechler 2016-06-24 01:35:16 -05:00
parent 72a6e5d071
commit 412a9cd026

View File

@ -745,6 +745,10 @@ function system_staticroutes_configure($interface = "", $update_dns = false) {
if (is_subnet($ip)) {
if (is_ipaddr($gatewayip)) {
if (is_linklocal($gatewayip) == "6" && !strpos($gatewayip, '%')) {
// add interface scope for link local v6 routes
$gatewayip .= "%$interfacegw";
}
mwexec($cmd . escapeshellarg($gatewayip));
if (isset($config['system']['route-debug'])) {
$mt = microtime();