File size: 391 Bytes
ea2ff26
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# 检查环境变量 PROXY_URL 是否被设置
if [ -z "$PROXY_URL" ]; then
  # 如果 PROXY_URL 未设置, 则不使用代理启动
  echo "PROXY_URL not set. Starting without proxy..."
  ./tgsou-go -port 9999
else
  # 如果 PROXY_URL 已设置, 则使用该代理启动
  echo "PROXY_URL found. Starting with proxy: $PROXY_URL"
  ./tgsou-go -port 9999 -proxy "$PROXY_URL"
fi