ttsoft icon indicating copy to clipboard operation
ttsoft copied to clipboard

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

Open linuxandroid opened this issue 6 years ago • 1 comments

在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 avatar Apr 12 '19 10:04 linuxandroid

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

希望能更新.

linuxandroid avatar Apr 12 '19 10:04 linuxandroid