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

软件中心base.sh中地址配置LAN地址时, 外网访问出错 #24

Open
linuxandroid opened this issue Apr 12, 2019 · 1 comment
Open

Comments

@linuxandroid
Copy link

在ATT中, 外网访问路由时, POST到LANIP时, 被防火墙阻止了. 消息也不返回. 所有需要POST的操作全部卡住. 界面上表现就是一直显示读取状态中.

用 curl -X POST -d '{"id":3434343, "method":"dummy_script.sh", "params":[33,44],"fields":{"hello":"cc","hd":"oooo","hf":"nnn"}}' http://192.168.1.1:1080/_api/ 来测试. 就表现为一直不返回.

后面把base.sh中 POST地址修改成 127.0.0.1就没问题了.
curl -X POST -d '{"id":3434343, "method":"dummy_script.sh", "params":[33,44],"fields":{"hello":"cc","hd":"oooo","hf":"nnn"}}' http://127.0.0.1:1080/_api/ 就能正确返回.

所以base.sh中, 要修改POST地址为LO的地址, 同时还要加上端口. 否则外网无法访问返回.

@linuxandroid
Copy link
Author

ddnsto 在 tomato 中无法使用. 命令行上单独运行也报: init error.

希望能更新.

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