mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
build break
This commit is contained in:
parent
aa4d897a21
commit
c61ddc7028
@ -171,10 +171,10 @@ func handleResponse(conn net.Conn, request *protocol.VMessRequest, output chan<-
|
|||||||
log.Error("VMessOut: Failed to create decrypt reader: %v", err)
|
log.Error("VMessOut: Failed to create decrypt reader: %v", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer, err := v2net.ReadFrom(decryptResponseReader)
|
buffer, err := v2net.ReadFrom(decryptResponseReader)
|
||||||
if err != nil {
|
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
|
return
|
||||||
}
|
}
|
||||||
if !bytes.Equal(buffer[:4], request.ResponseHeader[:]) {
|
if !bytes.Equal(buffer[:4], request.ResponseHeader[:]) {
|
||||||
@ -182,7 +182,7 @@ func handleResponse(conn net.Conn, request *protocol.VMessRequest, output chan<-
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
output <- buffer[4:nBytes]
|
output <- buffer[4:]
|
||||||
|
|
||||||
if !isUDP {
|
if !isUDP {
|
||||||
v2net.ReaderToChan(output, decryptResponseReader)
|
v2net.ReaderToChan(output, decryptResponseReader)
|
||||||
|
Loading…
Reference in New Issue
Block a user