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

部署后无法被局域网内其他设备访问 #5

Closed
KezhiAdore opened this issue Jan 23, 2024 · 1 comment
Closed

部署后无法被局域网内其他设备访问 #5

KezhiAdore opened this issue Jan 23, 2024 · 1 comment

Comments

@KezhiAdore
Copy link
Contributor

运行./main后在本机端口成功访问网页并检索,但是局域网内其他设备无法访问。

防火墙端口已开

@KezhiAdore
Copy link
Contributor Author

修改config.toml中的addr即可

- addr="127.0.0.1:8081"
+ addr="0.0.0.0:8081"

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

1 participant