From 7b193de6b912aa96940b06765143dff393be3cfd Mon Sep 17 00:00:00 2001 From: Maisem Ali Date: Mon, 3 Jun 2024 14:27:00 -0700 Subject: [PATCH] tsnet: return net.Listener from s.listen A `*listener` implements net.Listener which breaks a test in another repo. Regressed in 42cfbf427c671265d3c1fc47408b7961aa7eaec4. Updates #12182 Signed-off-by: Maisem Ali --- tsnet/tsnet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsnet/tsnet.go b/tsnet/tsnet.go index b7973a233..b38c84fe4 100644 --- a/tsnet/tsnet.go +++ b/tsnet/tsnet.go @@ -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: