fix panic when using socks5 plugin with encryption and compression, fix #446

This commit is contained in:
fatedier committed 2018-01-18 00:45:11 +08:00
1 parent 5b08201e5d
commit 338d5bae37
5 files changed
+10 -19

No files matched your search

+1 -1
View File
@@ -426,7 +426,7 @@ func HandleTcpWorkConnection(localInfo *config.LocalSvrConf, proxyPlugin plugin.
if proxyPlugin != nil {
// if plugin is set, let plugin handle connections first
workConn.Debug("handle by plugin: %s", proxyPlugin.Name())
proxyPlugin.Handle(remote)
proxyPlugin.Handle(remote, workConn)
workConn.Debug("handle by plugin finished")
return
} else {