tsnet: return net.Listener from s.listen

A `*listener` implements net.Listener which breaks
a test in another repo.

Regressed in 42cfbf427c.

Updates #12182

Signed-off-by: Maisem Ali <maisem@tailscale.com>
pull/12338/head
Maisem Ali 6 months ago committed by Maisem Ali
parent 3bf2bddbb5
commit 7b193de6b9

@ -1146,7 +1146,7 @@ func resolveListenAddr(network, addr string) (netip.AddrPort, error) {
return netip.AddrPortFrom(bindHostOrZero, uint16(port)), nil return netip.AddrPortFrom(bindHostOrZero, uint16(port)), nil
} }
func (s *Server) listen(network, addr string, lnOn listenOn) (*listener, error) { func (s *Server) listen(network, addr string, lnOn listenOn) (net.Listener, error) {
switch network { switch network {
case "", "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6": case "", "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6":
default: default:

Loading…
Cancel
Save