Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Fix SOCKS5 proxy connection errors on Linux and Windows #7

@braydos-h

Description

@braydos-h

The SOCKS5 proxy functionality is consistently failing on both Linux and Windows. The following errors are repeatedly observed:

  • [PROXY] <ip>:1080 target error: Connection refused by target host
  • [PROXY] <ip>:1080 failure: timed out (handshake)
  • [PROXY] <ip>:1080 target error: Host unreachable

Example log output:

[PROXY] 10.124.0.23:1080 target error: Connection refused by target host
[PROXY] 10.124.0.93:1080 target error: Connection refused by target host
[PROXY] 10.124.0.171:1080 target error: Connection refused by target host
[PROXY] 10.124.0.24:1080 failure: timed out (handshake)
[PROXY] 10.124.0.83:1080 failure: timed out (handshake)
[PROXY] 10.124.0.8:1080 failure: timed out (handshake)
[PROXY] 10.124.0.74:1080 failure: timed out (handshake)
[PROXY] 10.124.1.40:1080 target error: Connection refused by target host
[PROXY] 10.124.0.39:1080 failure: timed out (handshake)
[PROXY] 10.124.0.164:1080 failure: timed out (handshake)
[PROXY] 10.124.0.44:1080 failure: timed out (handshake)
[PROXY] 10.124.0.167:1080 failure: timed out (handshake)
[PROXY] 10.124.0.227:1080 target error: Host unreachable
[PROXY] 10.124.0.58:1080 failure: timed out (handshake)
[PROXY] 10.124.0.6:1080 failure: timed out (handshake)
[PROXY] 10.124.0.252:1080 target error: Connection refused by target host
[PROXY] 10.124.0.182:1080 failure: timed out (handshake)

Steps to reproduce:

  1. Attempt to use the SOCKS5 proxy feature on Linux or Windows.
  2. Observe repeated connection errors and timeouts in the logs.

Expected behavior:

  • Proxies should connect successfully or, if unreachable, fail gracefully without spamming the log.

Actual behavior:

  • Connection attempts consistently fail with the above errors.

Please investigate and fix the SOCKS5 proxy implementation so it works reliably on both Linux and Windows platforms.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions