github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/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/v5/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/net/packetaddr/config.proto"; 11 import "common/protocol/server_spec.proto"; 12 13 // Account represents a Socks account. 14 message Account { 15 string username = 1; 16 string password = 2; 17 } 18 19 // AuthType is the authentication type of Socks proxy. 20 enum AuthType { 21 // NO_AUTH is for anonymous authentication. 22 NO_AUTH = 0; 23 // PASSWORD is for username/password authentication. 24 PASSWORD = 1; 25 } 26 27 enum Version { 28 SOCKS5 = 0; 29 SOCKS4 = 1; 30 SOCKS4A = 2; 31 } 32 33 34 // ServerConfig is the protobuf config for Socks server. 35 message ServerConfig { 36 AuthType auth_type = 1; 37 map<string, string> accounts = 2; 38 v2ray.core.common.net.IPOrDomain address = 3; 39 bool udp_enabled = 4; 40 uint32 timeout = 5 [deprecated = true]; 41 uint32 user_level = 6; 42 43 v2ray.core.net.packetaddr.PacketAddrType packet_encoding = 7; 44 } 45 46 // ClientConfig is the protobuf config for Socks client. 47 message ClientConfig { 48 // Sever is a list of Socks server addresses. 49 repeated v2ray.core.common.protocol.ServerEndpoint server = 1; 50 Version version = 2; 51 52 bool delay_auth_write = 3; 53 }