Browse Source

fix access log in socks udp

Darien Raymond 7 năm trước cách đây
mục cha
commit
dd52e82c2d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      proxy/socks/server.go

+ 1 - 1
proxy/socks/server.go

@@ -201,7 +201,7 @@ func (s *Server) handleUDPPayload(ctx context.Context, conn internet.Connection,
 			if source, ok := proxy.SourceFromContext(ctx); ok {
 				log.Record(&log.AccessMessage{
 					From:   source,
-					To:     request.Destination,
+					To:     request.Destination(),
 					Status: log.AccessAccepted,
 					Reason: "",
 				})