mirror of
https://github.com/unchainese/unchain.git
synced 2025-12-24 12:38:02 +08:00
- Updated `go.mod` and `go.sum` to streamline dependencies. - Modified `main.go` to add a new action for starting a SOCKS5 server. - Implemented `AuthUser` method in `schema/trojan.go` for user authentication. - Enhanced `ProtoVLESS` structure in `schema/vless.go` to include user ID and data handling methods. - Refactored server package to improve organization and clarity. - Added a new `socks5.go` file to implement the SOCKS5 protocol and server functionality. - Created a UDP echo server in `testkit/udp_echo_svr.go` for testing purposes. - Developed a Python script `testkit/udpcheck.py` to validate UDP functionality through the SOCKS5 proxy. - Updated `testkit/config.json` to configure the V2Ray client for SOCKS5 with VLESS. - Added README documentation in `testkit/README.md` for testing UDP over SOCKS5 with VLESS.
39 lines
714 B
JSON
39 lines
714 B
JSON
{
|
|
"inbounds": [
|
|
{
|
|
"port": 1088,
|
|
"listen": "127.0.0.1",
|
|
"protocol": "socks",
|
|
"settings": {
|
|
"auth": "noauth",
|
|
"udp": true,
|
|
"ip": "127.0.0.1"
|
|
}
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"vnext": [
|
|
{
|
|
"address": "127.0.0.1",
|
|
"port": 8013,
|
|
"users": [
|
|
{
|
|
"id": "6fe57e3f-e618-4873-ba96-a76adec22ccd",
|
|
"encryption": "none"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"network": "ws",
|
|
"wsSettings": {
|
|
"path": "/wsv/v1?ed=2560"
|
|
} }
|
|
}
|
|
]
|
|
}
|