From eef1b9176f593637fd721121316bd1f413a2f64c Mon Sep 17 00:00:00 2001 From: ginuerzh Date: Sat, 2 Apr 2022 21:38:39 +0800 Subject: [PATCH] fix compile error for non-linux --- listener/redirect/udp/listener_other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/listener/redirect/udp/listener_other.go b/listener/redirect/udp/listener_other.go index 82a93ff..eedd4ec 100644 --- a/listener/redirect/udp/listener_other.go +++ b/listener/redirect/udp/listener_other.go @@ -7,7 +7,7 @@ import ( "net" ) -func (l *redirectListener) listenUDP(addr *net.UDPAddr) (*net.UDPConn, error) { +func (l *redirectListener) listenUDP(addr string) (*net.UDPConn, error) { return nil, errors.New("UDP redirect is not available on non-linux platform") }