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

[Enhancement]: custom header with websocket protocol #1362

Open
Soneoylys opened this issue Jul 29, 2024 · 3 comments
Open

[Enhancement]: custom header with websocket protocol #1362

Soneoylys opened this issue Jul 29, 2024 · 3 comments

Comments

@Soneoylys
Copy link

for bypassing local ISP throttling, need custom headers configuration like "Host"

@txthinking
Copy link
Owner

supported.
If your wsserver is ws://1.2.3.4:9999 and want to set host to example.com:80, then yo can get brook link: brook link -s ws://example.com:80 --address 1.2.3.4:9999

@Soneoylys
Copy link
Author

tried on freebsd (aarch64) with v20240606, cannot get it link
reproduce: passing ddns domain into --address, not work

tried modify /etc/hosts with cron + script, work as expected
tried on third party clients (shadowrocket), work as expected

for android/ios official clients, i cannot figure how to pass full configuration in
maybe i'm dumb, the command i've trying are:

./brook_freebsd_arm64 wsclient --http="127.0.0.1:38080" --socks5="127.0.0.1:30080" --password="DUMMY@0" --wsserver="ws://dummy.dummy.net:10000/ws" --address="ddns.dummy.net:10000"

./brook_freebsd_arm64 link --address="ddns.dummy.net:10000" --password="DUMMY@0" --server="dummy.dummy.net:10000/ws" --udpovertcp

Repository owner deleted a comment from txthinking-bot Aug 18, 2024
Repository owner deleted a comment from txthinking-bot Aug 18, 2024
@txthinking
Copy link
Owner

CLI client will try to resolve ddns.dummy.net:10000 to ip:port for each connection, but GUI client only resolve ddns.dummy.net:10000 to ip:port once and use it on the runtime.

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

2 participants