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

我浏览器突然注入不了,需要wss的注入才行,这种情况怎么解决 #21

Open
rookiexjl opened this issue Apr 8, 2024 · 9 comments

Comments

@rookiexjl
Copy link

No description provided.

@jxhczhl
Copy link
Owner

jxhczhl commented Apr 8, 2024

浏览器限制
1.编译https版本 带证书的外网 可用wss协议,否则只能ws
2.ws版本请用本地IP(127.0.0.1) 即rpc服务文件和注入客户端为同一个机器
两个选一个就行。

@yuzd
Copy link

yuzd commented Apr 29, 2024

@jxhczhl 请教大佬 https版本是需要自己动手重新编译?

@rookiexjl
Copy link
Author

rookiexjl commented Apr 29, 2024 via email

@yuzd
Copy link

yuzd commented Apr 29, 2024

什么事

wss 的好像我配置了没生效,我看你上面有提到需要编译https版本,想问下这个ssl的功能在现有的release的最新版本没有吗?

core/api.go tlsHandler方法是需要自己加进去重新编译的意思吗?

@jxhczhl
Copy link
Owner

jxhczhl commented Apr 29, 2024

什么事

wss 的要求我配置没有生效,我看你上面提到了需要编译 https 版本,想问下这个 ssl 的功能在现有版本的最新版本中没有吗?

core/api.go tlsHandler方法是需要自己加进去重新编译的意思吗?

不用自己编译,现在走配置文件了, wss的需要域名+https证书, 在配置文件指定证书路径 启用就好了,然后你看下启动的时候是否报错,

@yuzd
Copy link

yuzd commented Apr 30, 2024

什么事

wss 的要求我配置没有生效,我看你上面提到了需要编译 https 版本,想问下这个 ssl 的功能在现有版本的最新版本中没有吗?
core/api.go tlsHandler方法是需要自己加进去重新编译的意思吗?

不用自己编译,现在走配置文件了, wss的需要域名+https证书, 在配置文件指定证书路径 启用就好了,然后你看下启动的时候是否报错,

解决了 谢谢

@1193776794
Copy link

@yuzd 你的证书怎么配置的 我得一直链接不上呀

@rookiexjl
Copy link
Author

rookiexjl commented May 27, 2024 via email

@jxhczhl
Copy link
Owner

jxhczhl commented May 27, 2024

@yuzd 你的证书怎么配置的 我得一直链接不上呀

用腾讯或者阿里 申请免费的https证书就行啊,然后选择下载nginx的还是啥的来着,要.pem和.key文件的,然后放到目录里 再在配置文件里面去启用,打开rpc程序,如果不报错就说明证书没问题,然后https访问ssl的端口看看

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

4 participants