Skip to content

Commit

Permalink
fix: Update IP selection algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
heyvito committed Dec 8, 2023
1 parent 524b33d commit 49c4c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func filterIP(list []netip.Addr, filter func(netip.Addr) bool) *netip.Addr {
}
}

if anyNonLocal.IsValid() {
if anyLocal.IsValid() {
return &anyLocal
} else if anyNonLocal.IsValid() {
return &anyNonLocal
Expand Down

0 comments on commit 49c4c42

Please sign in to comment.