mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 08:01:31 +00:00
go.mod: bump bart
Updates #bart Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -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())
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user