v1.0.0beta17fix

~修复下载yacd面板后无法自动配置访问IP的bug
This commit is contained in:
juewuy 2020-11-09 16:16:14 +08:00
parent aaa1228319
commit 558a2ee6d8
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -1,4 +1,4 @@
clash_v=1.2.0 clash_v=1.2.0
clashpre_v=2020.10.26 clashpre_v=2020.10.26
GeoIP_v=20201108 GeoIP_v=20201108
versionsh=1.0.0beta17 versionsh=1.0.0beta17fix

View File

@ -654,8 +654,8 @@ getdb(){
sed -i "s/127.0.0.1/${host}/g" $dbdir/static/js/*.js sed -i "s/127.0.0.1/${host}/g" $dbdir/static/js/*.js
sed -i "s/9090/${db_port}/g" $dbdir/static/js/*.js sed -i "s/9090/${db_port}/g" $dbdir/static/js/*.js
else else
sed -i "s/127.0.0.1/${host}/g" $dbdir/app*.js sed -i "s/127.0.0.1:9090/${host}:${db_port}/g" $dbdir/app*.js
sed -i "s/7892/${db_port}/g" $dbdir/app*.js #sed -i "s/7892/${db_port}/g" $dbdir/app*.js
fi fi
#如果clash在运行则重启clash服务 #如果clash在运行则重启clash服务
[ "$dbdir" != "/www/clash" ] && [ -n "$PID" ] && $clashdir/start.sh restart [ "$dbdir" != "/www/clash" ] && [ -n "$PID" ] && $clashdir/start.sh restart