chore(routing): unexport IPIsPrivate as ipIsPrivate

This commit is contained in:
Quentin McGaw
2023-06-08 09:13:55 +00:00
parent 40cdb4f662
commit cade2b99bf
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ func (r *Routing) VPNDestinationIP() (ip netip.Addr, err error) {
for _, route := range routes {
if route.LinkIndex == defaultLinkIndex &&
route.Dst.IsValid() &&
!IPIsPrivate(route.Dst.Addr()) &&
!ipIsPrivate(route.Dst.Addr()) &&
route.Dst.IsSingleIP() {
return route.Dst.Addr(), nil
}