1027
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 33s
All checks were successful
Clone Repository with Trojan-Go Proxy / clone_with_proxy (push) Successful in 33s
This commit is contained in:
parent
e2d40e3abb
commit
1ed168f28b
22
.github/workflows/BBB.yml
vendored
22
.github/workflows/BBB.yml
vendored
@ -22,7 +22,6 @@ jobs:
|
||||
# 2. 配置代理参数
|
||||
- name: 🔧 配置 Trojan-Go 代理
|
||||
run: |
|
||||
# 创建 Trojan-Go 配置文件
|
||||
cat <<EOF > trojan-go-config.json
|
||||
{
|
||||
"run_type": "client",
|
||||
@ -32,25 +31,24 @@ jobs:
|
||||
"remote_port": 443,
|
||||
"password": ["aiwoQwo5253"],
|
||||
"ssl": {
|
||||
"sni": "en.aoun.ltd"
|
||||
"sni": "en.aoun.ltd",
|
||||
"alpn": ["http/1.1"],
|
||||
"verify": true
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
# 3. 启动 Trojan-Go 并检测代理是否可用
|
||||
- name: 🔍 检测代理
|
||||
- name: 🔍 测试代理的连通性
|
||||
run: |
|
||||
# 启动 Trojan-Go 代理
|
||||
nohup trojan-go -config trojan-go-config.json &
|
||||
|
||||
# 等待代理启动
|
||||
sleep 3
|
||||
|
||||
# 使用 curl 测试代理是否可用
|
||||
if curl -x socks5://127.0.0.1:1080 -s https://www.google.com > /dev/null; then
|
||||
echo "代理已启动并正常工作"
|
||||
sleep 5 # 等待代理启动
|
||||
|
||||
# 使用 curl 测试代理连接指定站点
|
||||
if curl -x socks5://127.0.0.1:1080 -s --max-time 10 https://example.com > /dev/null; then
|
||||
echo "代理连接成功"
|
||||
else
|
||||
echo "代理无法连接" && exit 1
|
||||
echo "代理连接失败,请检查配置" && exit 1
|
||||
fi
|
||||
|
||||
# 4. 使用代理克隆仓库
|
||||
|
Loading…
Reference in New Issue
Block a user