Open pjv opened 1 year ago
If you run gossip on whonix everything goes through TOR. That can be done today.
But to honor a SOCKS5/TOR proxy directly, I think tungstenite would need to support it first. I could be wrong, maybe there is a way we can point tungstenite at the proxy without it being proxy-aware, but I don't think so. Would have to dig into SOCK5 to figure that one out.
Ya, hoping to avoid the overhead of spinning up a VM on my mac just to run gossip on it. I proxy a lot of different apps in various ways, but gossip is somehow ducking under my tools and i can’t get ahold of its networking.
couple things i googled up…
https://docs.rs/async-socks5/0.5.1/async_socks5/fn.connect.html
this might be a full solution to adding proxy support for tungstenite: https://chuxi.github.io/posts/websocket/
some more stuff from the interwebs
https://github.com/snapview/tungstenite-rs/pull/55
https://github.com/snapview/tungstenite-rs/issues/177 (see especially https://github.com/snapview/tungstenite-rs/issues/177#issuecomment-798918074)
https://github.com/websockets-rs/rust-websocket/issues/258#issuecomment-1052801655
I'm not motivated to push forward on this right now as I've got so many higher priority things to do. But I would merge a sensible PR. And I like keeping this issue open so I can eventually get around to it.
i understand. If time opens up enough for me to take on learning rust, i may take a crack at it. likely you’ll get back to it someday before i do.
How hard would it be to make gossip proxy aware?
My use-case is wanting to run gossip through local SOCKS5 / TOR proxies.
maybe helpful? : https://stackoverflow.com/questions/63992487/is-there-a-way-to-connect-through-a-proxy-while-using-websocket-in-rust
…or not - just re-read that SO and realized there was no solution in there.