Fix socks udp return error

This commit is contained in:
世界 2022-08-18 16:16:33 +08:00
parent 69e33ed7b9
commit 33e3713fbf
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -216,6 +216,7 @@ func HandleConnection0(ctx context.Context, conn net.Conn, version byte, authent
close(done)
}()
err = common.Error(io.Copy(io.Discard, conn))
<-done
return E.Errors(innerError, err)
default:
err = socks5.WriteResponse(conn, socks5.Response{