ipn/ipnlocal: call serve handler for local traffic

Tailscale serve maintains a set of listeners so that serve traffic from
the local device can be properly served when running in kernel
networking mode. #10177 refactored that logic so that it could be reused
by the internal web client as well. However, in my refactoring I missed
actually calling the serve handler to handle the traffic.

Updates #10177

Signed-off-by: Will Norris <will@tailscale.com>
pull/10252/head
Will Norris 7 months ago committed by Will Norris
parent e3dacb3e5e
commit b7918341f9

@ -94,6 +94,7 @@ func (b *LocalBackend) newServeListener(ctx context.Context, ap netip.AddrPort,
b.logf("[unexpected] local-serve: no handler for %v to port %v", srcAddr, ap.Port())
conn.Close()
}
handler(conn)
return nil
},
bo: backoff.NewBackoff("serve-listener", logf, 30*time.Second),

Loading…
Cancel
Save