diff --git a/bin/clashfm.tar.gz b/bin/clashfm.tar.gz index c32bf8f..a0f0395 100644 Binary files a/bin/clashfm.tar.gz and b/bin/clashfm.tar.gz differ diff --git a/scripts/clash.sh b/scripts/clash.sh index 764b8f3..e5732d3 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -78,9 +78,9 @@ status=`ps |grep -w 'clash -d'|grep -v grep|wc -l` if [[ $status -gt 0 ]];then echo ----------------------------------------------- echo -e "\033[32mclash服务已启动!\033[0m" - echo -e "可以使用\033[30;47m http://clash.razord.top \033[0m管理clash内置规则" + echo -e "可以使用\033[30;47m http://clash.razord.top \033[0m管理内置规则" host=$(ubus call network.interface.lan status | grep \"address\" | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}';) - echo -e "Host地址:\033[30;46m $host \033[0m端口:\033[30;46m 9999 \033[0m" + echo -e "Host地址:\033[36m $host \033[0m 端口:\033[36m 9999 \033[0m" else echo ----------------------------------------------- echo -e "\033[31mclash服务启动失败!请检查配置文件!\033[0m" diff --git a/scripts/clashservice b/scripts/clashservice index de081ed..51f2a5c 100644 --- a/scripts/clashservice +++ b/scripts/clashservice @@ -6,8 +6,7 @@ USE_PROCD=1 START=99 getconfig(){ -cpath=/etc/clash -ccfg=$cpath/mark +ccfg=$clashdir/mark if [ ! -f "$ccfg" ]; then echo mark文件不存在,默认以Redir模式运行! cat >$ccfg<$ccfg< " res fi server_link=$(($server_link + 1)) #echo $server_link - sed -i "5i\server_link=$server_link" $ccfg + sed -i "1i\server_link=$server_link" $ccfg getyaml fi exit;