github.com/v2fly/v2ray-core/v4@v4.45.2/proxy/socks/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.proxy.socks; 4 option csharp_namespace = "V2Ray.Core.Proxy.Socks"; 5 option go_package = "github.com/v2fly/v2ray-core/v4/proxy/socks"; 6 option java_package = "com.v2ray.core.proxy.socks"; 7 option java_multiple_files = true; 8 9 import "common/net/address.proto"; 10 import "common/protocol/server_spec.proto"; 11 12 // Account represents a Socks account. 13 message Account { 14 string username = 1; 15 string password = 2; 16 } 17 18 // AuthType is the authentication type of Socks proxy. 19 enum AuthType { 20 // NO_AUTH is for anounymous authentication. 21 NO_AUTH = 0; 22 // PASSWORD is for username/password authentication. 23 PASSWORD = 1; 24 } 25 26 enum Version { 27 SOCKS5 = 0; 28 SOCKS4 = 1; 29 SOCKS4A = 2; 30 } 31 32 33 // ServerConfig is the protobuf config for Socks server. 34 message ServerConfig { 35 AuthType auth_type = 1; 36 map<string, string> accounts = 2; 37 v2ray.core.common.net.IPOrDomain address = 3; 38 bool udp_enabled = 4; 39 uint32 timeout = 5 [deprecated = true]; 40 uint32 user_level = 6; 41 } 42 43 // ClientConfig is the protobuf config for Socks client. 44 message ClientConfig { 45 // Sever is a list of Socks server addresses. 46 repeated v2ray.core.common.protocol.ServerEndpoint server = 1; 47 Version version = 2; 48 }