bepass-org / warp-plus

Warp+Psiphon, an anti censorship utility for iran
MIT License
1.33k stars 237 forks source link

warp: add goolbind option #74

Closed alirezahabib closed 1 month ago

alirezahabib commented 2 months ago

Add option to serve a proxy for the already created outer warp in gool (warp in warp) mode.

This is helpful since you can always have a gooled version running and use each mode based on your need. Say the inner is running on 8086 and outer on 8087. You can connect Telegram to 8087 (for better latency and less overhead) and connect your browser to 8086.

This does not change the usual behaviour unless the --goolbind option is used explicitly.

Example: ./warp-plus --gool -b 127.0.0.1:8086 --goolbind 127.0.0.1:8087

markpash commented 2 months ago

This is an interesting feature. Thanks for contributing! We're currently focused on optimising other parts of the code, so I wont merge this right now, but I will later. :heart:

markpash commented 2 months ago

I was reviewing this feature and I realised that we also have 2 proxies in the Psiphon case. Could we make this secondary bind work for both gool and cfon?

alirezahabib commented 2 months ago

Absolutely. Then we have to rename it to something else.