Skip to content

Commit

Permalink
gateways: even static DNS server routes circle back to gwlb.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Sep 25, 2017
1 parent 4ed9d97 commit 72edd79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/etc/inc/gwlb.inc
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,9 @@ 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) {
$gw['gateway'] .= "%{$gw['interface']}";
}
return $gw['gateway'];
}
}
Expand Down

0 comments on commit 72edd79

Please sign in to comment.