alexkirsz / dispatch

Combine internet connections, increase your download speed
Apache License 2.0
391 stars 32 forks source link

can't connect #7

Closed njunghausz closed 1 year ago

njunghausz commented 1 year ago

Error

Error: 
   0: An error occurred during the proxy handshake procedure
   1: The proxy received `CONNECT mail.google.com:443 HTTP/1.1` (179 additional bytes not shown), which looks like an HTTP request. Please ensure that you have properly configured the proxy as a SOCKS proxy and not an HTTP proxy.

Metadata

key value
Version 0.1.0
OS Windows 10 Enterprise
Command dispatch -d start 192.168.18.7

SpanTrace

``` SpanTrace: 0: dispatch::socks::handle_version_error with self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:1080, peer: 127.0.0.1:62620, socket: 1752 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:1080, peer: 127.0.0.1:62620, socket: 1752 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 192.168.18.7, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [], address_idx: 0, count: 0 } } }) } err=InvalidVersion(67) at C:\Users\Norbi\.cargo\registry\src\github.com-1ecc6299db9ec823\dispatch-proxy-0.1.0\src\socks.rs:93 1: dispatch::server::handle_socket with socket=PollEvented { io: Some(TcpStream { addr: 127.0.0.1:1080, peer: 127.0.0.1:62620, socket: 1752 }) } dispatcher=WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 192.168.18.7, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [], address_idx: 0, count: 0 } } }) at C:\Users\xxxx\.cargo\registry\src\github.com-1ecc6299db9ec823\dispatch-proxy-0.1.0\src\server.rs:19 ```

Backtrace

``` Backtrace: 0: 1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: BaseThreadInitThunk 24: RtlUserThreadStart ```
alexkirsz commented 1 year ago

You need to configure the proxy created by dispatch as a SOCKS proxy, and not an HTTP(s) proxy.

On this guide: https://imgur.com/pZjcb2A/ you need to enter the address in the "Socks" field and not the "HTTP" field.