Fix Trojan inbound access log (#255)

pull/2757/head
RPRX 2020-10-03 15:24:04 +00:00 committed by GitHub
parent 271532fc84
commit 36f0b7d6e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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,