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

开启https代理后,websocket代理会被关闭 #585

Open
foodmade opened this issue Jun 2, 2021 · 2 comments
Open

开启https代理后,websocket代理会被关闭 #585

foodmade opened this issue Jun 2, 2021 · 2 comments

Comments

@foodmade
Copy link

foodmade commented Jun 2, 2021

平台:Linux Centos7.6

Anyproxy版本:4.1.2

期望结果:能同时代理https和wss请求

问题描述:

  • 开启https代理后,代理wss请求就会出现如下日志,proxy ws closed..
  • 只开启ws代理: anyproxy --ws-intercept 则可以正常代理

执行日志:

0|proxy  | [AnyProxy Log][2021-06-02 10:15:13]: proxy ws closed with code: 1006 and reason: 
0|proxy  | [AnyProxy Log][2021-06-02 10:15:13]: original ws closed with code: 1001 and reason: Unexpected server response: 500
0|proxy  | [AnyProxy Log][2021-06-02 10:15:14]: received https CONNECT request ws.xxx.com
0|proxy  | [AnyProxy Log][2021-06-02 10:15:14]: will forward to local https server
@foodmade
Copy link
Author

foodmade commented Jun 2, 2021

跪求官方给我一个方案,能同时支持wss和https的启动方式,已经尝试很多办法了,都不行~~~

@CoderLim
Copy link

@foodmade 有解决办法了吗

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