mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
Fix Trojan inbound access log (#255)
This commit is contained in:
parent
271532fc84
commit
36f0b7d6e4
@ -187,7 +187,7 @@ func (s *Server) Process(ctx context.Context, network net.Network, conn internet
|
||||
|
||||
// handle tcp request
|
||||
|
||||
log.ContextWithAccessMessage(ctx, &log.AccessMessage{
|
||||
ctx = log.ContextWithAccessMessage(ctx, &log.AccessMessage{
|
||||
From: conn.RemoteAddr(),
|
||||
To: destination,
|
||||
Status: log.AccessAccepted,
|
||||
@ -220,7 +220,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, clientReader *PacketReade
|
||||
return nil
|
||||
}
|
||||
|
||||
log.ContextWithAccessMessage(ctx, &log.AccessMessage{
|
||||
ctx = log.ContextWithAccessMessage(ctx, &log.AccessMessage{
|
||||
From: inbound.Source,
|
||||
To: p.Target,
|
||||
Status: log.AccessAccepted,
|
||||
|
Loading…
Reference in New Issue
Block a user