mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-23 09:10:04 +00:00
ipn/ipnlocal,wgengine/netstack: unify TCP forwarders
This also has the side effect of registering the local ports with the port mapper so that subsequent calls to WhoIs return the correct information (resolves a TODO in code). Updates #13513
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
package tsd
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net"
|
||||
"reflect"
|
||||
|
||||
"tailscale.com/control/controlknobs"
|
||||
@@ -73,6 +75,7 @@ type System struct {
|
||||
// references LocalBackend, and LocalBackend has a tsd.System.
|
||||
type NetstackImpl interface {
|
||||
UpdateNetstackIPs(*netmap.NetworkMap)
|
||||
ForwardTCPHandler(dialCtx context.Context, dialAddr string) (func(net.Conn) error, error)
|
||||
}
|
||||
|
||||
// Set is a convenience method to set a subsystem value.
|
||||
|
Reference in New Issue
Block a user