Skip to content

Commit f163acc

Browse files
committed
fix merge conflicts
1 parent bc7eadd commit f163acc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ipn/localapi/localapi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ func (h *Handler) serveDebugPortmap(w http.ResponseWriter, r *http.Request) {
683683
logf("portmapping changed.")
684684
logf("have mapping: %v", c.HaveMapping())
685685

686-
if ext, ok := c.GetCachedMappingOrStartCreatingOne(); ok {
686+
if ext, ok := c.GetCachedMappingOrStartCreatingOne(ctx); ok {
687687
logf("cb: mapping: %v", ext)
688688
select {
689689
case done <- true:
@@ -738,7 +738,7 @@ func (h *Handler) serveDebugPortmap(w http.ResponseWriter, r *http.Request) {
738738
return
739739
}
740740

741-
if ext, ok := c.GetCachedMappingOrStartCreatingOne(); ok {
741+
if ext, ok := c.GetCachedMappingOrStartCreatingOne(ctx); ok {
742742
logf("mapping: %v", ext)
743743
} else {
744744
logf("no mapping")

tsnet/tsnet.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"time"
2929

3030
"golang.org/x/exp/slices"
31+
"gvisor.dev/gvisor/pkg/tcpip"
3132
"tailscale.com/client/tailscale"
3233
"tailscale.com/control/controlclient"
3334
"tailscale.com/envknob"
@@ -739,12 +740,12 @@ func (s *Server) getTCPHandlerForFunnelFlow(src netip.AddrPort, dstPort uint16)
739740
return ln.handle
740741
}
741742

742-
func (s *Server) getTCPHandlerForFlow(src, dst netip.AddrPort) (handler func(net.Conn), intercept bool) {
743+
func (s *Server) getTCPHandlerForFlow(src, dst netip.AddrPort) (handler func(net.Conn), opts []tcpip.SettableSocketOption, intercept bool) {
743744
ln, ok := s.listenerForDstAddr("tcp", dst, false)
744745
if !ok {
745-
return nil, true // don't handle, don't forward to localhost
746+
return nil, nil, true // don't handle, don't forward to localhost
746747
}
747-
return ln.handle, true
748+
return ln.handle, nil, true
748749
}
749750

750751
func (s *Server) getUDPHandlerForFlow(src, dst netip.AddrPort) (handler func(nettype.ConnPacketConn), intercept bool) {

0 commit comments

Comments
 (0)