mirror of
https://github.com/lush2020/edgetunnel.git
synced 2026-03-21 08:52:43 +08:00
add tunnel
This commit is contained in:
0
cloudflared-tunnel.md
Normal file
0
cloudflared-tunnel.md
Normal file
@@ -49,4 +49,10 @@ cat << EOF > /etc/v2ray/config.json
|
||||
EOF
|
||||
|
||||
# Run V2Ray
|
||||
if [[ $TUNNEL_TOKEN ]]; then
|
||||
echo 'has tunnel token, run cloudflared tunnel'
|
||||
/usr/bin/v2ray -config /etc/v2ray/config.json & /root/cloudflared tunnel --no-autoupdate run --token $TUNNEL_TOKEN
|
||||
else
|
||||
/usr/bin/v2ray -config /etc/v2ray/config.json
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user