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

代理的请求头要加个字段 x-whistle-policy: tunnel,这样whistle就会把这个请求当成一般的socket请求处理, #1019

Closed
tcguo opened this issue Dec 9, 2023 · 1 comment

Comments

@tcguo
Copy link

tcguo commented Dec 9, 2023

PS:如果是普通的Socket请求要通过whistle代理,要走tunnel代理,且代理的请求头要加个字段 x-whistle-policy: tunnel,这样whistle就会把这个请求当成一般的socket请求处理,且可以跟WebSocket一样进行抓包


大佬请问一下, x-whistle-policy: tunnel是加上哪里,怎么加

最近ios项目播放器用到了CocoaAsyncSocket和SJMediaCacheServer, 一连上代理就crash
image

@avwo
Copy link
Owner

avwo commented Dec 9, 2023

这个要在请求到达whistle前加,也可以在whistle 规则里面配置 域名 disable://capture

@avwo avwo closed this as completed Jan 15, 2024
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