Skip to content

Commit

Permalink
Fixed IPv6 chosen in case of public-ipv6 configured
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
  • Loading branch information
rbrtbnfgl committed Oct 3, 2024
1 parent 2fc7971 commit 54ea333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ipmatch/match.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func LookupExtIface(ifname string, ifregexS string, ifcanreach string, ipStack i
if err != nil {
return nil, fmt.Errorf("error looking up v6 interface %s: %s", ifname, err)
}
ifaceV6Addr = ifaceAddr
case dualStack:
if ifaceAddr.To4() != nil {
iface, err = ip.GetInterfaceByIP(ifaceAddr)
Expand Down

0 comments on commit 54ea333

Please sign in to comment.