diff --git a/README.md b/README.md index a70a56e..885f7f1 100644 --- a/README.md +++ b/README.md @@ -67,9 +67,11 @@ reload_config sudo -u nobody /root/ua3f ``` -shellclash 用户建议使用以下命令启动: +shellclash/shellcrash 用户建议使用以下命令启动: ```sh sudo -u shellclash /root/ua3f +# 如果上面命令报错执行下面该命令 +sudo -u shellcrash /root/ua3f ``` ### Clash 的配置建议 diff --git a/build.sh b/build.sh index 3fb6a2d..2ff46b2 100755 --- a/build.sh +++ b/build.sh @@ -1,7 +1,7 @@ #!/bin/sh project_name="ua3f" -release_version="0.2.2" +release_version="0.2.3" target=cmd/ua3f.go release_dir=./bin diff --git a/cmd/ua3f.go b/cmd/ua3f.go index 5bc3d30..be02e37 100644 --- a/cmd/ua3f.go +++ b/cmd/ua3f.go @@ -17,7 +17,7 @@ import ( "github.com/sirupsen/logrus" ) -var version = "0.2.2" +var version = "0.2.3" var payloadByte []byte var cache *expirable.LRU[string, string] var HTTP_METHOD = []string{"GET", "POST", "HEAD", "PUT", "DELETE", "OPTIONS", "TRACE", "CONNECT"} diff --git a/install.sh b/install.sh index 5a80748..261beb1 100755 --- a/install.sh +++ b/install.sh @@ -20,12 +20,15 @@ ckcmd() { cd /root getcpucore -version=0.2.2 +version=0.2.3 ua3f_tar=ua3f-$version-$cpucore.tar.gz if id -u shellclash >/dev/null 2>&1; then chmod o+w /etc/clash >/dev/null 2>&1 fi +if id -u shellcrash >/dev/null 2>&1; then + chmod o+w /etc/clash >/dev/null 2>&1 +fi if [ -f "ua3f" ]; then rm "ua3f" diff --git a/luci/cbi.lua b/luci/cbi.lua index 591a797..fc08757 100644 --- a/luci/cbi.lua +++ b/luci/cbi.lua @@ -3,7 +3,7 @@ local uci = require("luci.model.uci").cursor() ua3f = Map("ua3f", "UA3F", [[ - Version: 0.2.2 + Version: 0.2.3
Across the Campus we can reach every corner in the world. ]] diff --git a/ua3f.service b/ua3f.service index fbcfb1d..f91f5cb 100755 --- a/ua3f.service +++ b/ua3f.service @@ -40,6 +40,8 @@ start_service() { if id -u shellclash >/dev/null 2>&1; then procd_set_param user shellclash + elif id -u shellcrash >/dev/null 2>&1; then + procd_set_param user shellcrash elif id -u nobody >/dev/null 2>&1; then procd_set_param user nobody fi