go.mod: bump bart

Updates #bart

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2024-07-08 18:17:38 -07:00
committed by Maisem Ali
parent 8bd442ba8c
commit 2238ca8a05
6 changed files with 12 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ func emptySet(ip netip.Addr) bool { return false }
func bartLookup(t *bart.Table[struct{}]) func(netip.Addr) bool {
return func(ip netip.Addr) bool {
_, ok := t.Get(ip)
_, ok := t.Lookup(ip)
return ok
}
}

View File

@@ -417,7 +417,7 @@ func (d *Dialer) UserDial(ctx context.Context, network, addr string) (net.Conn,
}
if routes := d.routes.Load(); routes != nil {
if isTailscaleRoute, _ := routes.Get(ipp.Addr()); isTailscaleRoute {
if isTailscaleRoute, _ := routes.Lookup(ipp.Addr()); isTailscaleRoute {
return d.getPeerDialer().DialContext(ctx, network, ipp.String())
}

View File

@@ -626,7 +626,7 @@ func (pc *peerConfigTable) mapDstIP(src, oldDst netip.Addr) netip.Addr {
// The 'dst' of the packet is the address for this local node. It could
// be a masquerade address that we told other nodes to use, or one of
// our local node's Addresses.
c, ok := pc.byIP.Get(src)
c, ok := pc.byIP.Lookup(src)
if !ok {
return oldDst
}
@@ -657,7 +657,7 @@ func (pc *peerConfigTable) selectSrcIP(oldSrc, dst netip.Addr) netip.Addr {
}
// Look up the configuration for the destination
c, ok := pc.byIP.Get(dst)
c, ok := pc.byIP.Lookup(dst)
if !ok {
return oldSrc
}
@@ -767,7 +767,7 @@ func (pc *peerConfigTable) inboundPacketIsJailed(p *packet.Parsed) bool {
if pc == nil {
return false
}
c, ok := pc.byIP.Get(p.Src.Addr())
c, ok := pc.byIP.Lookup(p.Src.Addr())
if !ok {
return false
}
@@ -778,7 +778,7 @@ func (pc *peerConfigTable) outboundPacketIsJailed(p *packet.Parsed) bool {
if pc == nil {
return false
}
c, ok := pc.byIP.Get(p.Dst.Addr())
c, ok := pc.byIP.Lookup(p.Dst.Addr())
if !ok {
return false
}