1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-04 00:05:21 -05:00

log access in socks and http

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

View File

@@ -123,6 +123,7 @@ func (this *Server) handleConnection(conn *hub.Connection) {
log.Warning("HTTP: Malformed proxy host (", host, "): ", err)
return
}
log.Access(conn.RemoteAddr(), request.URL, log.AccessAccepted, "")
if strings.ToUpper(request.Method) == "CONNECT" {
this.handleConnect(request, dest, reader, conn)
} else {