1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-04 17:27:23 -05:00

build break

This commit is contained in:
V2Ray 2015-10-06 09:35:02 +02:00
parent aa4d897a21
commit c61ddc7028

View File

@ -172,9 +172,9 @@ func handleResponse(conn net.Conn, request *protocol.VMessRequest, output chan<-
return
}
buffer, err := v2net.ReadFrom(decryptResponseReader)
buffer, err := v2net.ReadFrom(decryptResponseReader)
if err != nil {
log.Error("VMessOut: Failed to read VMess response (%d bytes): %v", nBytes, err)
log.Error("VMessOut: Failed to read VMess response (%d bytes): %v", len(buffer), err)
return
}
if !bytes.Equal(buffer[:4], request.ResponseHeader[:]) {
@ -182,7 +182,7 @@ func handleResponse(conn net.Conn, request *protocol.VMessRequest, output chan<-
return
}
output <- buffer[4:nBytes]
output <- buffer[4:]
if !isUDP {
v2net.ReaderToChan(output, decryptResponseReader)