mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-04-10 15:55:32 -04: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.EqualFold(request.Method, "CONNECT") {
|
||||
|
||||
Reference in New Issue
Block a user