feat: add SOCKS5 proxy support and enhance configuration

- Introduced SOCKS5 proxy functionality with separate ports for random rotation and lowest latency.
- Updated `.env.example` and `docker-compose.yml` to include SOCKS5 port configurations.
- Enhanced `main.go` to initialize and start SOCKS5 servers alongside existing HTTP proxies.
- Revised README to document new SOCKS5 features, including usage examples and testing scripts.
- Improved proxy selection logic in the storage layer to support SOCKS5 protocol.
This commit is contained in:
isboyjc
2026-03-30 01:02:00 +08:00
parent cede441015
commit b1555a702f
11 changed files with 1052 additions and 93 deletions

View File

@@ -2,9 +2,11 @@
CONTAINER_NAME=goproxy
# 端口配置
STABLE_PORT=7776 # 最低延迟代理端口
RANDOM_PORT=7777 # 随机轮换代理端口
WEBUI_PORT=7778 # WebUI 管理端口
STABLE_PORT=7776 # HTTP 最低延迟代理端口
RANDOM_PORT=7777 # HTTP 随机轮换代理端口
WEBUI_PORT=7778 # WebUI 管理端口
SOCKS5_RANDOM_PORT=7779 # SOCKS5 随机轮换代理端口
SOCKS5_STABLE_PORT=7780 # SOCKS5 最低延迟代理端口
# 地理过滤配置
# 屏蔽指定国家代码的出口代理(逗号分隔,如 CN,RU,KP