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

Commit

Permalink
fix loopback detection (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido authored Apr 9, 2024
1 parent 6e05b8a commit 54c1b8c
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 @@ -143,7 +143,7 @@ func resolveAddress(address string) []netip.AddrPort {
for _, ip := range netips {
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() && addr.IsLoopback() {
if addr.Is4In6() && ip.IsLoopback() {
addr = netip.IPv6Loopback()
}
addrs[addr] = struct{}{}
Expand Down

0 comments on commit 54c1b8c

Please sign in to comment.