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.  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 

Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris 2023-11-14 23:06:27 -08:00 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),