monlor / Monlor-Tools

小米路由器Shell工具箱,本人自用,主要参考了小米的Misstar Tools制作,仅学习之用!Telegram群组:https://t.me/joinchat/FMraA0lwzH9fzEW1wXdCFA
GNU General Public License v3.0
692 stars 135 forks source link

【已解决】启动SS出现Bad argument `address' Try `iptables -h' or 'iptables --help' for more information. #79

Closed YongJie-Xie closed 6 years ago

YongJie-Xie commented 6 years ago

情况如下: tim 20180901105415

经调试发现,是因为域名解析工具resolveip缺少-s参数,补上即可。

解决方案如下:

vim /etc/monlor/apps/shadowsocks/script/shadowsocks.sh

大概在37行左右修改 原:ss_server_tmp=resolveip $ss_server | head -1 改:ss_server_tmp=resolveip **-s** $ss_server | head -1

tim 20180901105527

tea1111980 commented 6 years ago

我的是要去掉这个 -s 的选项,我这个没有这个选项。

YongJie-Xie commented 6 years ago

@tea1111980 如果你启动没有报错,那就不需要理会,我也不知为何我这会出现这种情况,或许是resolveip升级了。如果跟我一样的错误信息,只要加上-s参数即可。

YongJie-Xie commented 6 years ago

补充一下,我的resolveip版本是2.3

tea1111980 commented 6 years ago

resolveip 我的这个没有版本显示

image

全部的选项都在这了。

YongJie-Xie commented 6 years ago

@tea1111980 也许我只是个例,参考即可。 image

tea1111980 commented 6 years ago

@YongJie-Xie 你这个版本哪来的? 我也装了Entware 可是最新的版本就是2.0的,没有2.3的