alexkirsz/dispatch

<autogenerated-issue>

MinusAtaraxy opened this issue · 3 comments

Error

Error: 
   0: An error occurred during the proxy handshake procedure
   1: invalid SOCKS version 01, expected 04

Metadata

key value
Version 0.1.3
OS Windows 11 Education
Command C:\Users\pznet\Downloads\dispatch-proxy-x86_64-pc-windows-msvc\dispatch-proxy-x86_64-pc-windows-msvc\dispatch.exe -d start 10.194.66.212 192.168.2.245 --port 6060

SpanTrace

SpanTrace:
   0: dispatch::socks::handle_request_v4
           with �[3mself�[0m�[2m=�[0mSocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:6060, peer: 127.0.0.1:5845, socket: 924 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:6060, peer: 127.0.0.1:5845, socket: 924 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.194.66.212, weight: 1 }, WeightedAddress { ip: 192.168.2.245, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [], address_idx: 0, count: 0 } } }) }
             at src\socks.rs:259
   1: dispatch::socks::handle_handshake_with_version
           with �[3mself�[0m�[2m=�[0mSocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:6060, peer: 127.0.0.1:5845, socket: 924 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:6060, peer: 127.0.0.1:5845, socket: 924 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.194.66.212, weight: 1 }, WeightedAddress { ip: 192.168.2.245, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [], address_idx: 0, count: 0 } } }) } �[3mversion�[0m�[2m=�[0mV4
             at src\socks.rs:121
   2: dispatch::server::handle_socket
           with �[3msocket�[0m�[2m=�[0mPollEvented { io: Some(TcpStream { addr: 127.0.0.1:6060, peer: 127.0.0.1:5845, socket: 924 }) } �[3mdispatcher�[0m�[2m=�[0mWeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.194.66.212, weight: 1 }, WeightedAddress { ip: 192.168.2.245, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [], address_idx: 0, count: 0 } } })
             at src\server.rs:19

Backtrace

Backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: <unknown>
  10: <unknown>
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: <unknown>
  16: <unknown>
  17: <unknown>
  18: <unknown>
  19: <unknown>
  20: <unknown>
  21: BaseThreadInitThunk
  22: RtlUserThreadStart

Sorry, the plan was to just read the error log from the generated link then read some other issues on here but I guess I misclicked. It works fine in firefox but when I try to do it from windows > internet options > LAN settings > proxy it doesn't. I read some other threads and looks like this isn't a unique problem, sorry again for a duplicate post. Maybe it's just socks5 on windows, I'm no expert so.

Sorry, the plan was to just read the error log from the generated link then read some other issues on here but I guess I misclicked. It works fine in firefox but when I try to do it from windows > internet options > LAN settings > proxy it doesn't. I read some other threads and looks like this isn't a unique problem, sorry again for a duplicate post. Maybe it's just socks5 on windows, I'm no expert so.

I get the same issue when setting up in Windows 10..did you find any solution

No not really. I tried the Node version and the other go-dispatch version but neither worked. I looked through closed issue threads but couldn't get their solutions working either.