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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user