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>
This commit is contained in:
parent
3bf2bddbb5
commit
7b193de6b9
|
@ -1146,7 +1146,7 @@ func resolveListenAddr(network, addr string) (netip.AddrPort, error) {
|
|||
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 {
|
||||
case "", "tcp", "tcp4", "tcp6", "udp", "udp4", "udp6":
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue