Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Fix ipv6 loopback address by adding it to the map instead of overwrit…
Browse files Browse the repository at this point in the history
…ing (#145)
  • Loading branch information
baluchicken authored Apr 30, 2024
1 parent cabf8b7 commit e568736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func resolveAddress(address string) []netip.AddrPort {
if addr, ok := netip.AddrFromSlice(ip); ok {
// if the address is ipv4 in ipv6 format and it is a loopback address, convert it to ipv6 loopback
if addr.Is4In6() && ip.IsLoopback() {
addr = netip.IPv6Loopback()
addrs[netip.IPv6Loopback()] = struct{}{}
}
addrs[addr] = struct{}{}
}
Expand Down

0 comments on commit e568736

Please sign in to comment.