Fix a bug in Json and Token Tunnels.

This commit is contained in:
fscarmen
2024-04-04 15:26:05 +00:00
parent 23743ae6a5
commit 53065a4e83
2 changed files with 11 additions and 8 deletions
+3 -3
View File
@@ -164,7 +164,7 @@ bash <(wget -qO- https://raw.githubusercontent.com/fscarmen/sing-box/main/sing-b
```
docker run -dit \
--pull always \
--name sing-box
--name sing-box \
-p 8800-8820:8800-8820/tcp \
-p 8800-8820:8800-8820/udp \
-e START_PORT=8800 \
@@ -203,8 +203,8 @@ services:
networks:
- sing-box
ports:
- "8000-8020:8800-8820/tcp"
- "8000-8020:8800-8820/udp"
- "8800-8820:8800-8820/tcp"
- "8800-8820:8800-8820/udp"
environment:
- START_PORT=8800
- SERVER_IP=123.123.123.123
+4 -1
View File
@@ -643,8 +643,11 @@ stdout_logfile=/dev/null
echo "$SUPERVISORD_CONF" > /etc/supervisor.d/daemon.ini
# 如使用临时隧道,先运行 cloudflared 以获取临时隧道域名
if [ -n "$METRICS_PORT" ]; then
$WORK_DIR/$ARGO_RUNS >/dev/null 2>&1 &
[ -n "$METRICS_PORT" ] && sleep 3 && ARGO_DOMAIN=$(wget -qO- http://localhost:$METRICS_PORT/quicktunnel | awk -F '"' '{print $4}')
sleep 3
local ARGO_DOMAIN=$(wget -qO- http://localhost:$METRICS_PORT/quicktunnel | awk -F '"' '{print $4}')
fi
# 生成 nginx 配置文件
local NGINX_CONF="user root;