diff options
| author | Simeng He <simeng@tailscale.com> | 2021-07-07 13:35:30 -0400 |
|---|---|---|
| committer | Simeng He <simeng@tailscale.com> | 2021-07-07 13:35:30 -0400 |
| commit | ccde87bee581ef4680c08569475dbfcb32762ddb (patch) | |
| tree | fefca50a3584f661c5f097ea0d6fb25201fb1a5d /wgengine/netstack/netstack.go | |
| parent | fcbabd35b2506c9d5bc961ba3444c32f9e25d289 (diff) | |
| download | tailscale-simenghe/tcpnodeping.tar.xz tailscale-simenghe/tcpnodeping.zip | |
Signed-off-by: Simeng He <simeng@tailscale.com>
Diffstat (limited to 'wgengine/netstack/netstack.go')
| -rw-r--r-- | wgengine/netstack/netstack.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wgengine/netstack/netstack.go b/wgengine/netstack/netstack.go index 4bd00f041..c86641b43 100644 --- a/wgengine/netstack/netstack.go +++ b/wgengine/netstack/netstack.go @@ -399,6 +399,7 @@ func (ns *Impl) DialContextUDP(ctx context.Context, addr string) (*gonet.UDPConn } func (ns *Impl) injectOutbound() { + log.Println("NETSTACK Inject outbound") for { packetInfo, ok := ns.linkEP.ReadContext(context.Background()) if !ok { @@ -431,6 +432,7 @@ func (ns *Impl) isLocalIP(ip netaddr.IP) bool { } func (ns *Impl) injectInbound(p *packet.Parsed, t *tstun.Wrapper) filter.Response { + log.Println("NETSTACK: injectInbound") if ns.onlySubnets && ns.isLocalIP(p.Dst.IP()) { // In hybrid ("only subnets") mode, bail out early if // the traffic is destined for an actual Tailscale |
