KaranGauswami / socks-to-http-proxy

An executable to convert SOCKS5 proxy into HTTP proxy
MIT License
245 stars 35 forks source link

feat: add allowed domains option #11

Closed mostafa8026 closed 1 year ago

mostafa8026 commented 1 year ago

With this PR, the ability to allow only a specific domain has been added

Sample command:

RUST_LOG=debug cargo run -- -p 9072 --listen-ip 0.0.0.0 --socks-address 127.0.0.1:9070 --allowed-domains openai.com,yarnpkg.com,amazonaws.com,grpc.io,github.com,githubusercontent.com,cloudflare.com
KaranGauswami commented 1 year ago

Thanks for the PR, @mostafa8026