-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
在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的地址, 同时还要加上端口. 否则外网无法访问返回.
Metadata
Metadata
Assignees
Labels
No labels