Make sure srcip has scope when it's link-local. Should fix #3969

This commit is contained in:
Renato Botelho 2014-11-06 08:30:50 -02:00
parent e7752fc4ee
commit 3f6525c1ab
1 changed files with 5 additions and 1 deletions

View File

@ -214,7 +214,11 @@ EOD;
$gwifip = find_interface_ipv6($gateway['interface'], true);
}
}
/* Make sure srcip has scope defined when it's ll */
if (is_linklocal($gwifip) && !strstr($gwifip, '%'))
$gwifip .= '%' . $gateway['interface'];
if (!is_ipaddrv6($gwifip))
continue; //Skip this target