Skip to content

Conversation

@0x676e67
Copy link
Owner

@0x676e67 0x676e67 commented Oct 2, 2025

This pull request enhances logging for TCP, UDP, HTTP, and SOCKS5 connection handling throughout the server codebase, making connection flows and packet forwarding more transparent and easier to debug. It also refactors some HTTP tunnel logic for clarity and maintainability.

Logging improvements:

  • Added more descriptive and consistent log messages for TCP, UDP, HTTP, and SOCKS5 connection and forwarding events, including source and destination addresses and packet sizes. This helps track connection flows and troubleshoot issues. [1] [2] [3] [4]

HTTP tunnel handling refactor:

  • Refactored the HTTP tunnel setup by extracting the tunnel logic into a standalone tunnel function, passing explicit parameters instead of relying on self. This improves code clarity and separation of concerns. [1] [2]
  • Moved utility functions empty and full to a more appropriate location in the file for better organization. [1] [2]
  • Added a missing import for TcpConnector in the HTTP module to support the refactored tunnel logic.

@0x676e67 0x676e67 added the enhancement New feature or request label Oct 2, 2025
@0x676e67 0x676e67 merged commit b1ab392 into main Oct 2, 2025
9 checks passed
@0x676e67 0x676e67 deleted the chore branch October 2, 2025 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants