diff --git a/common/io/encryption.go b/common/io/encryption.go index eb054ff3..bc59ac6c 100644 --- a/common/io/encryption.go +++ b/common/io/encryption.go @@ -3,8 +3,6 @@ package io import ( "crypto/cipher" "io" - - "github.com/v2ray/v2ray-core/common/log" ) // CryptionReader is a general purpose reader that applies a stream cipher on top of a regular reader. diff --git a/proxy/vmess/vmessout.go b/proxy/vmess/vmessout.go index e2f4bf46..d72f53d4 100644 --- a/proxy/vmess/vmessout.go +++ b/proxy/vmess/vmessout.go @@ -168,7 +168,7 @@ func handleResponse(conn *net.TCPConn, request *protocol.VMessRequest, output ch } response := protocol.VMessResponse{} - nBytes, err := decryptResponseReader.Read(response[:]) + _, err = decryptResponseReader.Read(response[:]) if err != nil { //log.Error("VMessOut: Failed to read VMess response (%d bytes): %v", nBytes, err) return