github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/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 = "v2ray.com/core/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 // ServerConfig is the protobuf config for Socks server. 27 message ServerConfig { 28 AuthType auth_type = 1; 29 map<string, string> accounts = 2; 30 v2ray.core.common.net.IPOrDomain address = 3; 31 bool udp_enabled = 4; 32 uint32 timeout = 5 [deprecated = true]; 33 uint32 user_level = 6; 34 } 35 36 // ClientConfig is the protobuf config for Socks client. 37 message ClientConfig { 38 // Sever is a list of Socks server addresses. 39 repeated v2ray.core.common.protocol.ServerEndpoint server = 1; 40 }