log access in socks and http

This commit is contained in:
v2ray committed 2016-06-05 15:02:15 +02:00
1 parent 798c870069
commit 5eae540e5c
3 files changed
+11 -4

No files matched your search

+1
View File
@@ -43,6 +43,7 @@ func (this *Server) handleUDPPayload(payload *alloc.Buffer, source v2net.Destina
}
log.Info("Socks: Send packet to ", request.Destination(), " with ", request.Data.Len(), " bytes")
log.Access(source, request.Destination, log.AccessAccepted, "")
this.udpServer.Dispatch(source, request.Destination(), request.Data, func(destination v2net.Destination, payload *alloc.Buffer) {
response := &protocol.Socks5UDPRequest{
Fragment: 0,