You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update project documentation with recent architecture changes
Reflect the addition of Trojan protocol support, UDP handling, and
updated file structure in the project guide. Update configuration
options and request flow description to match current implementation.
Copy file name to clipboardExpand all lines: CLAUDE.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
EDtunnel is a Cloudflare Worker/Pages-based VLESS proxy tool that implements WebSocket transport protocol for tunneling traffic. It runs on Cloudflare's serverless infrastructure and provides a web-based proxy service with multi-protocol support.
7
+
EDtunnel is a Cloudflare Worker/Pages-based proxy tool that implements WebSocket transport protocol for tunneling traffic. It runs on Cloudflare's serverless infrastructure and provides a web-based proxy service with multi-protocol support (VLESS and Trojan).
8
8
9
9
## Development Commands
10
10
@@ -33,12 +33,17 @@ src/
33
33
├── handlers/
34
34
│ ├── main.js # Main request router
35
35
│ ├── http.js # HTTP request handling
36
-
│ └── websocket.js # WebSocket upgrade and VLESS processing
36
+
│ └── websocket.js # WebSocket upgrade and protocol processing
37
37
├── protocol/
38
38
│ ├── vless.js # VLESS protocol parsing
39
+
│ ├── trojan.js # Trojan protocol parsing
39
40
│ └── dns.js # DNS query handling over UDP
40
41
├── proxy/
41
42
│ ├── tcp.js # TCP connection management
43
+
│ ├── udp.js # UDP connection handling
44
+
│ ├── udp-handler.js # UDP packet processing
45
+
│ ├── http.js # HTTP proxy support
46
+
│ ├── vless.js # VLESS proxy implementation
42
47
│ ├── stream.js # Stream processing utilities
43
48
│ └── socks5.js # SOCKS5 proxy client
44
49
├── generators/
@@ -48,21 +53,24 @@ src/
48
53
├── encoding.js # Base64 encoding/decoding
49
54
├── validation.js # UUID validation
50
55
├── parser.js # Configuration parsing
56
+
├── crypto.js # Cryptographic utilities
57
+
├── proxyResolver.js # Proxy address resolution
51
58
└── websocket.js # WebSocket utilities
52
59
```
53
60
54
61
### Production Files
55
62
56
63
-**`_worker.js`** - Obfuscated bundle for Cloudflare deployment
0 commit comments