Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't actually make any requests on Windows #41

Open
brian6932 opened this issue Jan 9, 2025 · 0 comments
Open

Doesn't actually make any requests on Windows #41

brian6932 opened this issue Jan 9, 2025 · 0 comments

Comments

@brian6932
Copy link

❯ ./dispatch.exe -d start --port (Get-Random -Minimum 1 -Maximum ([int32][uint16]::MaxValue)) 10.0.0.1 fd24:b170:a297::
2025-01-09T17:23:28.063856Z TRACE server{ip=127.0.0.1 port=60233 addresses=[WeightedAddress { ip: 10.0.0.1, weight: 1 }, WeightedAddress { ip: fd24:b170:a297::, weight: 1 }]}:start_server{addr=127.0.0.1:60233 addresses=[WeightedAddress { ip: 10.0.0.1, weight: 1 }, WeightedAddress { ip: fd24:b170:a297::, weight: 1 }]}: registering event source with poller: token=Token(0), interests=READABLE | WRITABLE
SOCKS proxy started on 127.0.0.1:60233
Dispatching to addresses 10.0.0.1@1,fd24:b170:a297::@1
2025-01-09T17:23:38.553083Z TRACE server{ip=127.0.0.1 port=60233 addresses=[WeightedAddress { ip: 10.0.0.1, weight: 1 }, WeightedAddress { ip: fd24:b170:a297::, weight: 1 }]}:start_server{addr=127.0.0.1:60233 addresses=[WeightedAddress { ip: 10.0.0.1, weight: 1 }, WeightedAddress { ip: fd24:b170:a297::, weight: 1 }]}: registering event source with poller: token=Token(1), interests=READABLE | WRITABLE
2025-01-09T17:23:38.556118Z TRACE handle_socket{socket=PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) } dispatcher=WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } })}:handle_handshake_with_version{self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } }) } version=V5}:handle_connect_v5{self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } }) } address=[2a02:6ea0:c035::11]:443 local_addr=fd24:b170:a297::}: registering event source with poller: token=Token(2), interests=READABLE | WRITABLE
2025-01-09T17:23:38.556408Z TRACE handle_socket{socket=PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) } dispatcher=WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } })}:handle_handshake_with_version{self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } }) } version=V5}:handle_connect_v5{self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } }) } address=[2a02:6ea0:c035::11]:443 local_addr=fd24:b170:a297::}: deregistering event source from poller
2025-01-09T17:23:38.563244Z TRACE handle_socket{socket=PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) } dispatcher=WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } })}: deregistering event source from poller
2025-01-09T17:23:38.563441Z  WARN
   0: An error occurred during the proxy handshake procedure
   1: Failed to connect to address `[2a02:6ea0:c035::11]:443`
   2: A socket operation was attempted to an unreachable network. (os error 10051)

Location:
   /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483\library\core\src\convert\mod.rs:726

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   0: dispatch::socks::handle_connect_v5 with self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } }) } address=[2a02:6ea0:c035::11]:443 local_addr=fd24:b170:a297::
      at src\socks.rs:211
   1: dispatch::socks::handle_handshake_with_version with self=SocksHandshake { reader: ReadHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), writer: WriteHalf(PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) }), dispatcher: WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } }) } version=V5
      at src\socks.rs:121
   2: dispatch::server::handle_socket with socket=PollEvented { io: Some(TcpStream { addr: 127.0.0.1:60233, peer: 127.0.0.1:60737, socket: 2576 }) } dispatcher=WeightedRoundRobinDispatcher(Mutex { data: WeightedRoundRobinDispatcherInner { ipv4: State { addresses: [WeightedAddress { ip: 10.0.0.1, weight: 1 }], address_idx: 0, count: 0 }, ipv6: State { addresses: [WeightedAddress { ip: fd24:b170:a297::, weight: 1 }], address_idx: 0, count: 0 } } })
      at src\server.rs:19

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1: BaseThreadInitThunk<unknown>
      at <unknown source file>:<unknown line>
   2: RtlUserThreadStart<unknown>
      at <unknown source file>:<unknown line>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant