brook icon indicating copy to clipboard operation
brook copied to clipboard

[Enhancement]: custom header with websocket protocol

Open Soneoylys opened this issue 1 year ago • 3 comments

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

Soneoylys avatar Jul 29 '24 09:07 Soneoylys

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

txthinking avatar Jul 30 '24 07:07 txthinking

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

Soneoylys avatar Aug 06 '24 19:08 Soneoylys

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.

txthinking avatar Aug 18 '24 23:08 txthinking