Skip to content

Commit 9c897f9

Browse files
committed
server: only print funnel on message if the funnel is being turned on
Signed-off-by: Oli Strik <[email protected]>
1 parent 3ab1238 commit 9c897f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/server.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,9 @@ func ServeOnLocalTailscaled(ctx context.Context, lc *local.Client, st *ipnstate.
456456
foregroundSc := new(ipn.ServeConfig)
457457
mak.Set(&sc.Foreground, n.SessionID, foregroundSc)
458458
serverURL := strings.TrimSuffix(st.Self.DNSName, ".")
459-
fmt.Printf("setting funnel for %s:%v\n", serverURL, dstPort)
459+
if shouldFunnel {
460+
fmt.Printf("setting funnel for %s:%v\n", serverURL, dstPort)
461+
}
460462

461463
foregroundSc.SetFunnel(serverURL, dstPort, shouldFunnel)
462464
foregroundSc.SetWebHandler(&ipn.HTTPHandler{

0 commit comments

Comments
 (0)