mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
access log add detour tag
This commit is contained in:
@@ -131,10 +131,11 @@ Start:
|
||||
if err != nil {
|
||||
return newError("malformed proxy host: ", host).AtWarning().Base(err)
|
||||
}
|
||||
log.Record(&log.AccessMessage{
|
||||
ctx = log.ContextWithAccessMessage(ctx, &log.AccessMessage{
|
||||
From: conn.RemoteAddr(),
|
||||
To: request.URL,
|
||||
Status: log.AccessAccepted,
|
||||
Reason: "",
|
||||
})
|
||||
|
||||
if strings.ToUpper(request.Method) == "CONNECT" {
|
||||
|
||||
Reference in New Issue
Block a user