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

Surge Mac上boxjs突然无法打开 #505

Open
lge6 opened this issue Nov 27, 2024 · 8 comments
Open

Surge Mac上boxjs突然无法打开 #505

lge6 opened this issue Nov 27, 2024 · 8 comments

Comments

@lge6
Copy link

lge6 commented Nov 27, 2024

Surge Mac上之前boxjs正常运行,通过http://boxjs.com/可以访问。这几天访问http://boxjs.com/,会自动跳转http://ww12.boxjs.com/,且无法打开。

@chavyleung
Copy link
Owner

跳转到 http://ww12.boxjs.com 是因为你没有安装 boxjs,或安装了没启用

  1. 检查 BoxJs 模块是否启用
  2. Surge 外部资源是否更新
  3. Surge 脚本是否启用
  4. Surge MitM 是否启用 (证书是否被系统信任)

@lge6
Copy link
Author

lge6 commented Nov 27, 2024

BoxJs 模块已启用,Surge 外部资源已经更新,Surge 脚本启用,Surge MitM 启用且更新了证书。

目前访问http://boxjs.com,依然会跳转到http://ww99.boxjs.com/,不过可以打开页面。

另外,之前自动跳转到http://ww12.boxjs.com/虽然是空白也无法打开,但是输入该网址还是可以访问。

@chavyleung
Copy link
Owner

先访问 http://boxjs.com 再去 工具 > 最新请求 看看请求有没被重写成功

@lge6
Copy link
Author

lge6 commented Nov 27, 2024

Snipaste_2024-11-27_10-54-12 通过surge查看,访问boxjs.com的时候应该是成功被重写的

@chavyleung
Copy link
Owner

脚本日志查一下看看

@lge6
Copy link
Author

lge6 commented Nov 27, 2024

Rewrite: BoxJs-2024-11-27.log
是这个么?

@chavyleung
Copy link
Owner

日志看上去正常,但表现不太对,我注意你反馈访问的域名是 http,但重写的是 https
http://boxjs.com
https://boxjs.com
http://boxjs.net
https://boxjs.net
这几个域名都试试看哪个可以进去

@lge6
Copy link
Author

lge6 commented Nov 27, 2024

http://boxjs.com/ 这个是可以的,不知道为什么现在又好了。
https://boxjs.com/ 这个进去是会跳转到http://ww99.boxjs.com/。

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