File size: 674 Bytes
ce9b431
226a91f
 
ce9b431
226a91f
ce9b431
226a91f
ce9b431
 
226a91f
 
f0889c9
226a91f
 
 
 
1b90aa4
226a91f
 
 
1b90aa4
226a91f
1b90aa4
 
 
 
226a91f
 
f0889c9
226a91f
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: WebSocket Proxy Tunnel
emoji: 🚇
colorFrom: blue
colorTo: green
sdk: docker
app_port: 7860
---

# WebSocket Proxy Tunnel

通过 Hugging Face Space 部署 WebSocket 隧道代理,支持 HTTP/HTTPS 全协议。

## 客户端使用

```bash
# 有 PROXY_TOKEN(推荐)
wstunnel client \
  --http-upgrade-path-prefix "你的PROXY_TOKEN" \
  -L socks5://127.0.0.1:1080 \
  wss://airsltd-proxy-tunnel.hf.space

# 无 PROXY_TOKEN
wstunnel client \
  -L socks5://127.0.0.1:1080 \
  wss://airsltd-proxy-tunnel.hf.space
```

## 使用代理

```bash
export http_proxy=socks5://127.0.0.1:1080
export https_proxy=socks5://127.0.0.1:1080
curl https://www.google.com
```