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

[Bug] 在内网机器部署后使用内网穿透映射到公网 #439

Open
1 of 2 tasks
wxyShine opened this issue May 10, 2024 · 1 comment
Open
1 of 2 tasks

[Bug] 在内网机器部署后使用内网穿透映射到公网 #439

wxyShine opened this issue May 10, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wxyShine
Copy link

Search before asking

  • I searched in the issue and found nothing similar. | 我查找了并确认issue列表无相似报告。

Sonic version

v2.6.4

Deploy platform

Linux debian12

Minimal reproduce step

部署成功使用内网 http://192.168.1.223:3000/ 正常使用, 使用frp 将3000端口映射到公网后使用出现问题: 样式文件都没问题 发现一个接口请求的还是内网地址
image

image

Are you willing to submit a PR?

  • I'm willing to submit a PR! | 我将发起PR!
@wxyShine wxyShine added the bug Something isn't working label May 10, 2024
@YeungHoiChiu
Copy link

YeungHoiChiu commented Jun 25, 2024

web 请求的baseURL就是走的内网,项目本来应用场景就是局域网云真机,所以你需要二次开发。
image

.env
image

而且如果修改成https的话,之前在社区群内看到有说ws也会走wss,可能会导致无法使用真机(原因:Link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants