mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
Add socks4/4a support
This commit is contained in:
parent
238bd5d050
commit
77d0419aca
4 changed files with 154 additions and 33 deletions
|
@ -23,6 +23,12 @@ enum AuthType {
|
|||
PASSWORD = 1;
|
||||
}
|
||||
|
||||
enum Version {
|
||||
SOCKS5 = 0;
|
||||
SOCKS4 = 1;
|
||||
SOCKS4A = 2;
|
||||
}
|
||||
|
||||
// ServerConfig is the protobuf config for Socks server.
|
||||
message ServerConfig {
|
||||
AuthType auth_type = 1;
|
||||
|
@ -37,4 +43,5 @@ message ServerConfig {
|
|||
message ClientConfig {
|
||||
// Sever is a list of Socks server addresses.
|
||||
repeated xray.common.protocol.ServerEndpoint server = 1;
|
||||
Version version = 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue