[pull] main from 6Kmfi6HP:main#8
Open
pull[bot] wants to merge 31 commits into
Open
Conversation
- Standardized indentation and formatting in the request configuration object. - Enhanced comments for clarity in the ProtocolOverWSHandler and HandleTCPOutBound functions. - Minor updates to README.md for better structure and clarity in usage examples and configuration notes.
- Migrate from single index.js to modular src/ structure - Update to ES modules (type: module) and bump to v2.0.0 - Add esbuild for bundling before obfuscation - Upgrade Node.js to v22 and wrangler to v4.60.0 - Simplify CI workflow to use npm scripts
When generating config page or subscription, the code was directly using the PROXYIP environment variable, ignoring the URL parameter. Now the priority is: URL parameter > environment variable > default. Fixes #265
Fix URL parameter 'proxyip' not overriding environment variable
The .gitignore rule 'socks5.js' was accidentally ignoring src/proxy/socks5.js, preventing it from being committed. Changed to '/socks5.js' to only ignore the root-level file.
Fix missing socks5.js module causing CI build failure
…on to v3 - Add Node.js 22 setup step using actions/setup-node@v3 - Upgrade cloudflare/wrangler-action from 2.0.0 to v3 - Fixes: Wrangler requires Node.js v20.0.0+ but action was using v16.20.2
Fix CF Worker CI failure by upgrading Node.js and wrangler-action
- Create README_CN.md for Chinese documentation - Keep README.md for English documentation - Both files contain complete project information - Add cross-links between language versions
…architecture details
- Implement Trojan protocol handler with auto-detection alongside VLESS - Add HTTP CONNECT proxy support as alternative to SOCKS5 - Support path-based proxy parameters (/socks5://, /http://, /proxyip=) - Add global proxy mode for routing all traffic through proxy - Generate Trojan subscription URLs and configuration pages - Add TROJAN_PASSWORD environment variable (defaults to UUID)
Add Trojan protocol and HTTP proxy support
Add support for rotating through multiple proxy addresses when establishing TCP connections. This enhances reliability by attempting alternative proxies or falling back to direct connections upon failure. - Add `PROXY_TIMEOUT` and `PROXY_FALLBACK` configuration options - Refactor TCP outbound handler to modularize connection strategies - Implement retry mechanism using proxy rotation logic - Add fallback to direct connection if proxy rotation fails
- Add VLESS outbound connection module (src/proxy/vless.js) for connecting to external VLESS servers via WebSocket - Add UDP handler (src/proxy/udp-handler.js, src/proxy/udp.js) enabling full UDP proxy support when VLESS outbound is configured - Add VLESS URL parser to support vless:// protocol URLs - Support multiple configuration methods: URL path (/vless://, /gvless=), query parameters (?vless=), and environment variable (VLESS_OUTBOUND) - Fix ArrayBuffer to Uint8Array conversion for rawClientData handling - Add detailed logging throughout connection lifecycle for debugging - Update TCP handler to support VLESS alongside SOCKS5 and HTTP proxies
feat(proxy): add VLESS outbound proxy support with full UDP capability
Add documentation for recently implemented features: - Trojan protocol support with auto-detection - HTTP CONNECT proxy as SOCKS5 alternative - VLESS outbound proxy with full UDP capability - Multi-proxy rotation and automatic failover - Path-based proxy parameters (/socks5://, /http://, /vless://) - New environment variables: TROJAN_PASSWORD, VLESS_OUTBOUND, PROXY_TIMEOUT, PROXY_FALLBACK - Replace socks5_relay query param with globalproxy
The obfuscate workflow now appends the previous commit's message to its own commit, making it easier to track which changes triggered each obfuscation.
Only trigger the obfuscate workflow when source code files change (src/**, package.json, package-lock.json), skipping unnecessary runs for documentation or other non-code 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )