Skip to content

Commit

Permalink
gateways: fix copy+paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Sep 25, 2017
1 parent a270ff3 commit e3dcbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/inc/gwlb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ function lookup_gateway_ip_by_name($name)

foreach ($gateways_arr as $gname => $gw) {
if ($gw['name'] === $name || $gname === $name) {
if (is_linklocal($gw['gateway']) && !strstr($gw['gateway'], '%') === false) {
if (is_linklocal($gw['gateway']) && strpos($gw['gateway'], '%') === false) {
$gw['gateway'] .= "%{$gw['interface']}";
}
return $gw['gateway'];
Expand Down

0 comments on commit e3dcbf8

Please sign in to comment.