From 588645a2c3eda1afcde9e93fc2d01b7c7357338a Mon Sep 17 00:00:00 2001 From: Dreamacro <8615343+Dreamacro@users.noreply.github.com> Date: Wed, 4 Aug 2021 23:52:50 +0800 Subject: [PATCH] Fix: interface nil check panic from previous commit --- listener/listener.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/listener/listener.go b/listener/listener.go index f9fffdf4..d20af99d 100644 --- a/listener/listener.go +++ b/listener/listener.go @@ -20,15 +20,15 @@ var ( allowLan = false bindAddress = "*" - socksListener C.Listener - socksUDPListener C.Listener - httpListener C.Listener - redirListener C.Listener - redirUDPListener C.Listener - tproxyListener C.Listener - tproxyUDPListener C.Listener - mixedListener C.Listener - mixedUDPLister C.Listener + socksListener *socks.Listener + socksUDPListener *socks.UDPListener + httpListener *http.Listener + redirListener *redir.Listener + redirUDPListener *tproxy.UDPListener + tproxyListener *tproxy.Listener + tproxyUDPListener *tproxy.UDPListener + mixedListener *mixed.Listener + mixedUDPLister *socks.UDPListener // lock for recreate function socksMux sync.Mutex