mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
format code
This commit is contained in:
parent
7a24dc3e09
commit
78daf8a879
@ -67,7 +67,7 @@ func (server *SocksServer) handlePacket(conn *net.UDPConn, packet v2net.Packet,
|
|||||||
close(ray.InboundInput())
|
close(ray.InboundInput())
|
||||||
|
|
||||||
if data, ok := <-ray.InboundOutput(); ok {
|
if data, ok := <-ray.InboundOutput(); ok {
|
||||||
response := &protocol.Socks5UDPRequest {
|
response := &protocol.Socks5UDPRequest{
|
||||||
Fragment: 0,
|
Fragment: 0,
|
||||||
Address: targetAddr,
|
Address: targetAddr,
|
||||||
Data: data,
|
Data: data,
|
||||||
|
@ -181,7 +181,7 @@ func handleResponse(conn net.Conn, request *protocol.VMessRequest, output chan<-
|
|||||||
log.Warning("VMessOut: unexepcted response header. The connection is probably hijacked.")
|
log.Warning("VMessOut: unexepcted response header. The connection is probably hijacked.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Info("VMessOut received %d bytes from %s", len(buffer) - 4, conn.RemoteAddr().String())
|
log.Info("VMessOut received %d bytes from %s", len(buffer)-4, conn.RemoteAddr().String())
|
||||||
|
|
||||||
output <- buffer[4:]
|
output <- buffer[4:]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user