github.com/EagleQL/Xray-core@v1.4.3/proxy/socks/config.proto (about) 1 syntax = "proto3"; 2 3 package xray.proxy.socks; 4 option csharp_namespace = "Xray.Proxy.Socks"; 5 option go_package = "github.com/xtls/xray-core/proxy/socks"; 6 option java_package = "com.xray.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 xray.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 xray.common.protocol.ServerEndpoint server = 1; 40 }