1
0
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:
V2Ray 2015-10-06 17:24:57 +02:00
parent 7a24dc3e09
commit 78daf8a879
7 changed files with 26 additions and 26 deletions

View File

@ -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,

View File

@ -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:]