Add scope identifier to target when its link-local

This commit is contained in:
Ermal 2013-08-16 19:35:13 +00:00
parent f7ff77fa80
commit 42f33846eb

View File

@ -169,6 +169,8 @@ EOD;
} else {
$gwifip = find_interface_ipv6($gateway['interface'], true);
}
if (is_linklocal($gateway['monitor']) && !strstr($gateway['monitor'], '%'))
$gateway['monitor'] .= "{$gateway['monitor']}%{$gateway['interface']}";
if (!is_ipaddrv6($gwifip))
continue; //Skip this target
} else