Forráskód Böngészése

Change log message from 'processing connection' to 'processing TCP/UDP'

Co-authored-by: RPRX <[email protected]>
copilot-swe-agent[bot] 1 hete
szülő
commit
9ac1e98110
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      proxy/tun/handler.go
  2. 1 1
      proxy/tun/udp_fullcone.go

+ 1 - 1
proxy/tun/handler.go

@@ -127,7 +127,7 @@ func (t *Handler) HandleConnection(conn net.Conn, destination net.Destination) {
 		Status: log.AccessAccepted,
 		Reason: "",
 	})
-	errors.LogInfo(ctx, "processing connection from ", conn.RemoteAddr(), " to ", destination)
+	errors.LogInfo(ctx, "processing TCP from ", conn.RemoteAddr(), " to ", destination)
 
 	link := &transport.Link{
 		Reader: &buf.TimeoutWrapperReader{Reader: buf.NewReader(conn)},

+ 1 - 1
proxy/tun/udp_fullcone.go

@@ -117,7 +117,7 @@ func (u *udpConnectionHandler) HandlePacket(src net.Destination, dst net.Destina
 				Status: log.AccessAccepted,
 				Reason: "",
 			})
-			errors.LogInfo(ctx, "processing connection from ", src, " to ", dst)
+			errors.LogInfo(ctx, "processing UDP from ", src, " to ", dst)
 			link := &transport.Link{
 				Reader: &buf.TimeoutWrapperReader{Reader: conn.reader},
 				// reverse source and destination, indicating the packets to write are going in the other