wgengine/netstack: remove some logging on forwarding connections
Change-Id: Ib1165b918cd5da38583f8e7d4be8cda54af3c81d Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>pull/3573/head
parent
486059589b
commit
6590fc3a94
|
@ -533,7 +533,9 @@ func (ns *Impl) acceptTCP(r *tcp.ForwarderRequest) {
|
||||||
func (ns *Impl) forwardTCP(client *gonet.TCPConn, clientRemoteIP netaddr.IP, wq *waiter.Queue, dialAddr netaddr.IPPort) {
|
func (ns *Impl) forwardTCP(client *gonet.TCPConn, clientRemoteIP netaddr.IP, wq *waiter.Queue, dialAddr netaddr.IPPort) {
|
||||||
defer client.Close()
|
defer client.Close()
|
||||||
dialAddrStr := dialAddr.String()
|
dialAddrStr := dialAddr.String()
|
||||||
|
if debugNetstack {
|
||||||
ns.logf("[v2] netstack: forwarding incoming connection to %s", dialAddrStr)
|
ns.logf("[v2] netstack: forwarding incoming connection to %s", dialAddrStr)
|
||||||
|
}
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
@ -609,7 +611,9 @@ func (ns *Impl) acceptUDP(r *udp.ForwarderRequest) {
|
||||||
// proxy to it directly.
|
// proxy to it directly.
|
||||||
func (ns *Impl) forwardUDP(client *gonet.UDPConn, wq *waiter.Queue, clientAddr, dstAddr netaddr.IPPort) {
|
func (ns *Impl) forwardUDP(client *gonet.UDPConn, wq *waiter.Queue, clientAddr, dstAddr netaddr.IPPort) {
|
||||||
port, srcPort := dstAddr.Port(), clientAddr.Port()
|
port, srcPort := dstAddr.Port(), clientAddr.Port()
|
||||||
|
if debugNetstack {
|
||||||
ns.logf("[v2] netstack: forwarding incoming UDP connection on port %v", port)
|
ns.logf("[v2] netstack: forwarding incoming UDP connection on port %v", port)
|
||||||
|
}
|
||||||
|
|
||||||
var backendListenAddr *net.UDPAddr
|
var backendListenAddr *net.UDPAddr
|
||||||
var backendRemoteAddr *net.UDPAddr
|
var backendRemoteAddr *net.UDPAddr
|
||||||
|
|
Loading…
Reference in New Issue