config.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. package socks
  2. import (
  3. net "github.com/v2fly/v2ray-core/v5/common/net"
  4. packetaddr "github.com/v2fly/v2ray-core/v5/common/net/packetaddr"
  5. protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. reflect "reflect"
  9. sync "sync"
  10. )
  11. const (
  12. // Verify that this generated code is sufficiently up-to-date.
  13. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  14. // Verify that runtime/protoimpl is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  16. )
  17. // AuthType is the authentication type of Socks proxy.
  18. type AuthType int32
  19. const (
  20. // NO_AUTH is for anonymous authentication.
  21. AuthType_NO_AUTH AuthType = 0
  22. // PASSWORD is for username/password authentication.
  23. AuthType_PASSWORD AuthType = 1
  24. )
  25. // Enum value maps for AuthType.
  26. var (
  27. AuthType_name = map[int32]string{
  28. 0: "NO_AUTH",
  29. 1: "PASSWORD",
  30. }
  31. AuthType_value = map[string]int32{
  32. "NO_AUTH": 0,
  33. "PASSWORD": 1,
  34. }
  35. )
  36. func (x AuthType) Enum() *AuthType {
  37. p := new(AuthType)
  38. *p = x
  39. return p
  40. }
  41. func (x AuthType) String() string {
  42. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  43. }
  44. func (AuthType) Descriptor() protoreflect.EnumDescriptor {
  45. return file_proxy_socks_config_proto_enumTypes[0].Descriptor()
  46. }
  47. func (AuthType) Type() protoreflect.EnumType {
  48. return &file_proxy_socks_config_proto_enumTypes[0]
  49. }
  50. func (x AuthType) Number() protoreflect.EnumNumber {
  51. return protoreflect.EnumNumber(x)
  52. }
  53. // Deprecated: Use AuthType.Descriptor instead.
  54. func (AuthType) EnumDescriptor() ([]byte, []int) {
  55. return file_proxy_socks_config_proto_rawDescGZIP(), []int{0}
  56. }
  57. type Version int32
  58. const (
  59. Version_SOCKS5 Version = 0
  60. Version_SOCKS4 Version = 1
  61. Version_SOCKS4A Version = 2
  62. )
  63. // Enum value maps for Version.
  64. var (
  65. Version_name = map[int32]string{
  66. 0: "SOCKS5",
  67. 1: "SOCKS4",
  68. 2: "SOCKS4A",
  69. }
  70. Version_value = map[string]int32{
  71. "SOCKS5": 0,
  72. "SOCKS4": 1,
  73. "SOCKS4A": 2,
  74. }
  75. )
  76. func (x Version) Enum() *Version {
  77. p := new(Version)
  78. *p = x
  79. return p
  80. }
  81. func (x Version) String() string {
  82. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  83. }
  84. func (Version) Descriptor() protoreflect.EnumDescriptor {
  85. return file_proxy_socks_config_proto_enumTypes[1].Descriptor()
  86. }
  87. func (Version) Type() protoreflect.EnumType {
  88. return &file_proxy_socks_config_proto_enumTypes[1]
  89. }
  90. func (x Version) Number() protoreflect.EnumNumber {
  91. return protoreflect.EnumNumber(x)
  92. }
  93. // Deprecated: Use Version.Descriptor instead.
  94. func (Version) EnumDescriptor() ([]byte, []int) {
  95. return file_proxy_socks_config_proto_rawDescGZIP(), []int{1}
  96. }
  97. // Account represents a Socks account.
  98. type Account struct {
  99. state protoimpl.MessageState
  100. sizeCache protoimpl.SizeCache
  101. unknownFields protoimpl.UnknownFields
  102. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  103. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  104. }
  105. func (x *Account) Reset() {
  106. *x = Account{}
  107. if protoimpl.UnsafeEnabled {
  108. mi := &file_proxy_socks_config_proto_msgTypes[0]
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. ms.StoreMessageInfo(mi)
  111. }
  112. }
  113. func (x *Account) String() string {
  114. return protoimpl.X.MessageStringOf(x)
  115. }
  116. func (*Account) ProtoMessage() {}
  117. func (x *Account) ProtoReflect() protoreflect.Message {
  118. mi := &file_proxy_socks_config_proto_msgTypes[0]
  119. if protoimpl.UnsafeEnabled && x != nil {
  120. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  121. if ms.LoadMessageInfo() == nil {
  122. ms.StoreMessageInfo(mi)
  123. }
  124. return ms
  125. }
  126. return mi.MessageOf(x)
  127. }
  128. // Deprecated: Use Account.ProtoReflect.Descriptor instead.
  129. func (*Account) Descriptor() ([]byte, []int) {
  130. return file_proxy_socks_config_proto_rawDescGZIP(), []int{0}
  131. }
  132. func (x *Account) GetUsername() string {
  133. if x != nil {
  134. return x.Username
  135. }
  136. return ""
  137. }
  138. func (x *Account) GetPassword() string {
  139. if x != nil {
  140. return x.Password
  141. }
  142. return ""
  143. }
  144. // ServerConfig is the protobuf config for Socks server.
  145. type ServerConfig struct {
  146. state protoimpl.MessageState
  147. sizeCache protoimpl.SizeCache
  148. unknownFields protoimpl.UnknownFields
  149. AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,proto3,enum=v2ray.core.proxy.socks.AuthType" json:"auth_type,omitempty"`
  150. Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts,proto3" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  151. Address *net.IPOrDomain `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
  152. UdpEnabled bool `protobuf:"varint,4,opt,name=udp_enabled,json=udpEnabled,proto3" json:"udp_enabled,omitempty"`
  153. // Deprecated: Marked as deprecated in proxy/socks/config.proto.
  154. Timeout uint32 `protobuf:"varint,5,opt,name=timeout,proto3" json:"timeout,omitempty"`
  155. UserLevel uint32 `protobuf:"varint,6,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  156. PacketEncoding packetaddr.PacketAddrType `protobuf:"varint,7,opt,name=packet_encoding,json=packetEncoding,proto3,enum=v2ray.core.net.packetaddr.PacketAddrType" json:"packet_encoding,omitempty"`
  157. }
  158. func (x *ServerConfig) Reset() {
  159. *x = ServerConfig{}
  160. if protoimpl.UnsafeEnabled {
  161. mi := &file_proxy_socks_config_proto_msgTypes[1]
  162. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  163. ms.StoreMessageInfo(mi)
  164. }
  165. }
  166. func (x *ServerConfig) String() string {
  167. return protoimpl.X.MessageStringOf(x)
  168. }
  169. func (*ServerConfig) ProtoMessage() {}
  170. func (x *ServerConfig) ProtoReflect() protoreflect.Message {
  171. mi := &file_proxy_socks_config_proto_msgTypes[1]
  172. if protoimpl.UnsafeEnabled && x != nil {
  173. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  174. if ms.LoadMessageInfo() == nil {
  175. ms.StoreMessageInfo(mi)
  176. }
  177. return ms
  178. }
  179. return mi.MessageOf(x)
  180. }
  181. // Deprecated: Use ServerConfig.ProtoReflect.Descriptor instead.
  182. func (*ServerConfig) Descriptor() ([]byte, []int) {
  183. return file_proxy_socks_config_proto_rawDescGZIP(), []int{1}
  184. }
  185. func (x *ServerConfig) GetAuthType() AuthType {
  186. if x != nil {
  187. return x.AuthType
  188. }
  189. return AuthType_NO_AUTH
  190. }
  191. func (x *ServerConfig) GetAccounts() map[string]string {
  192. if x != nil {
  193. return x.Accounts
  194. }
  195. return nil
  196. }
  197. func (x *ServerConfig) GetAddress() *net.IPOrDomain {
  198. if x != nil {
  199. return x.Address
  200. }
  201. return nil
  202. }
  203. func (x *ServerConfig) GetUdpEnabled() bool {
  204. if x != nil {
  205. return x.UdpEnabled
  206. }
  207. return false
  208. }
  209. // Deprecated: Marked as deprecated in proxy/socks/config.proto.
  210. func (x *ServerConfig) GetTimeout() uint32 {
  211. if x != nil {
  212. return x.Timeout
  213. }
  214. return 0
  215. }
  216. func (x *ServerConfig) GetUserLevel() uint32 {
  217. if x != nil {
  218. return x.UserLevel
  219. }
  220. return 0
  221. }
  222. func (x *ServerConfig) GetPacketEncoding() packetaddr.PacketAddrType {
  223. if x != nil {
  224. return x.PacketEncoding
  225. }
  226. return packetaddr.PacketAddrType(0)
  227. }
  228. // ClientConfig is the protobuf config for Socks client.
  229. type ClientConfig struct {
  230. state protoimpl.MessageState
  231. sizeCache protoimpl.SizeCache
  232. unknownFields protoimpl.UnknownFields
  233. // Sever is a list of Socks server addresses.
  234. Server []*protocol.ServerEndpoint `protobuf:"bytes,1,rep,name=server,proto3" json:"server,omitempty"`
  235. Version Version `protobuf:"varint,2,opt,name=version,proto3,enum=v2ray.core.proxy.socks.Version" json:"version,omitempty"`
  236. }
  237. func (x *ClientConfig) Reset() {
  238. *x = ClientConfig{}
  239. if protoimpl.UnsafeEnabled {
  240. mi := &file_proxy_socks_config_proto_msgTypes[2]
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. ms.StoreMessageInfo(mi)
  243. }
  244. }
  245. func (x *ClientConfig) String() string {
  246. return protoimpl.X.MessageStringOf(x)
  247. }
  248. func (*ClientConfig) ProtoMessage() {}
  249. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  250. mi := &file_proxy_socks_config_proto_msgTypes[2]
  251. if protoimpl.UnsafeEnabled && x != nil {
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. if ms.LoadMessageInfo() == nil {
  254. ms.StoreMessageInfo(mi)
  255. }
  256. return ms
  257. }
  258. return mi.MessageOf(x)
  259. }
  260. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  261. func (*ClientConfig) Descriptor() ([]byte, []int) {
  262. return file_proxy_socks_config_proto_rawDescGZIP(), []int{2}
  263. }
  264. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  265. if x != nil {
  266. return x.Server
  267. }
  268. return nil
  269. }
  270. func (x *ClientConfig) GetVersion() Version {
  271. if x != nil {
  272. return x.Version
  273. }
  274. return Version_SOCKS5
  275. }
  276. var File_proxy_socks_config_proto protoreflect.FileDescriptor
  277. var file_proxy_socks_config_proto_rawDesc = []byte{
  278. 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f,
  279. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61,
  280. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63,
  281. 0x6b, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61,
  282. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f,
  283. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61,
  284. 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  285. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  286. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  287. 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a,
  288. 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  289. 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
  290. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
  291. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc9, 0x03, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
  292. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f,
  293. 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
  294. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f,
  295. 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75,
  296. 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
  297. 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  298. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
  299. 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41,
  300. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x63,
  301. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  302. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  303. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  304. 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
  305. 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  306. 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x45, 0x6e, 0x61,
  307. 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18,
  308. 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
  309. 0x75, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  310. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65,
  311. 0x6c, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f,
  312. 0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72,
  313. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b,
  314. 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64,
  315. 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63,
  316. 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  317. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  318. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  319. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  320. 0x38, 0x01, 0x22, 0x8d, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
  321. 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20,
  322. 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  323. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  324. 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52,
  325. 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  326. 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  327. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
  328. 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  329. 0x6f, 0x6e, 0x2a, 0x25, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b,
  330. 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41, 0x55, 0x54, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50,
  331. 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x2a, 0x2e, 0x0a, 0x07, 0x56, 0x65, 0x72,
  332. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x35, 0x10, 0x00,
  333. 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07,
  334. 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34, 0x41, 0x10, 0x02, 0x42, 0x63, 0x0a, 0x1a, 0x63, 0x6f, 0x6d,
  335. 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  336. 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75,
  337. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61,
  338. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
  339. 0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa, 0x02, 0x16, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  340. 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06,
  341. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  342. }
  343. var (
  344. file_proxy_socks_config_proto_rawDescOnce sync.Once
  345. file_proxy_socks_config_proto_rawDescData = file_proxy_socks_config_proto_rawDesc
  346. )
  347. func file_proxy_socks_config_proto_rawDescGZIP() []byte {
  348. file_proxy_socks_config_proto_rawDescOnce.Do(func() {
  349. file_proxy_socks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_socks_config_proto_rawDescData)
  350. })
  351. return file_proxy_socks_config_proto_rawDescData
  352. }
  353. var file_proxy_socks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  354. var file_proxy_socks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  355. var file_proxy_socks_config_proto_goTypes = []interface{}{
  356. (AuthType)(0), // 0: v2ray.core.proxy.socks.AuthType
  357. (Version)(0), // 1: v2ray.core.proxy.socks.Version
  358. (*Account)(nil), // 2: v2ray.core.proxy.socks.Account
  359. (*ServerConfig)(nil), // 3: v2ray.core.proxy.socks.ServerConfig
  360. (*ClientConfig)(nil), // 4: v2ray.core.proxy.socks.ClientConfig
  361. nil, // 5: v2ray.core.proxy.socks.ServerConfig.AccountsEntry
  362. (*net.IPOrDomain)(nil), // 6: v2ray.core.common.net.IPOrDomain
  363. (packetaddr.PacketAddrType)(0), // 7: v2ray.core.net.packetaddr.PacketAddrType
  364. (*protocol.ServerEndpoint)(nil), // 8: v2ray.core.common.protocol.ServerEndpoint
  365. }
  366. var file_proxy_socks_config_proto_depIdxs = []int32{
  367. 0, // 0: v2ray.core.proxy.socks.ServerConfig.auth_type:type_name -> v2ray.core.proxy.socks.AuthType
  368. 5, // 1: v2ray.core.proxy.socks.ServerConfig.accounts:type_name -> v2ray.core.proxy.socks.ServerConfig.AccountsEntry
  369. 6, // 2: v2ray.core.proxy.socks.ServerConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  370. 7, // 3: v2ray.core.proxy.socks.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  371. 8, // 4: v2ray.core.proxy.socks.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  372. 1, // 5: v2ray.core.proxy.socks.ClientConfig.version:type_name -> v2ray.core.proxy.socks.Version
  373. 6, // [6:6] is the sub-list for method output_type
  374. 6, // [6:6] is the sub-list for method input_type
  375. 6, // [6:6] is the sub-list for extension type_name
  376. 6, // [6:6] is the sub-list for extension extendee
  377. 0, // [0:6] is the sub-list for field type_name
  378. }
  379. func init() { file_proxy_socks_config_proto_init() }
  380. func file_proxy_socks_config_proto_init() {
  381. if File_proxy_socks_config_proto != nil {
  382. return
  383. }
  384. if !protoimpl.UnsafeEnabled {
  385. file_proxy_socks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  386. switch v := v.(*Account); i {
  387. case 0:
  388. return &v.state
  389. case 1:
  390. return &v.sizeCache
  391. case 2:
  392. return &v.unknownFields
  393. default:
  394. return nil
  395. }
  396. }
  397. file_proxy_socks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  398. switch v := v.(*ServerConfig); i {
  399. case 0:
  400. return &v.state
  401. case 1:
  402. return &v.sizeCache
  403. case 2:
  404. return &v.unknownFields
  405. default:
  406. return nil
  407. }
  408. }
  409. file_proxy_socks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  410. switch v := v.(*ClientConfig); i {
  411. case 0:
  412. return &v.state
  413. case 1:
  414. return &v.sizeCache
  415. case 2:
  416. return &v.unknownFields
  417. default:
  418. return nil
  419. }
  420. }
  421. }
  422. type x struct{}
  423. out := protoimpl.TypeBuilder{
  424. File: protoimpl.DescBuilder{
  425. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  426. RawDescriptor: file_proxy_socks_config_proto_rawDesc,
  427. NumEnums: 2,
  428. NumMessages: 4,
  429. NumExtensions: 0,
  430. NumServices: 0,
  431. },
  432. GoTypes: file_proxy_socks_config_proto_goTypes,
  433. DependencyIndexes: file_proxy_socks_config_proto_depIdxs,
  434. EnumInfos: file_proxy_socks_config_proto_enumTypes,
  435. MessageInfos: file_proxy_socks_config_proto_msgTypes,
  436. }.Build()
  437. File_proxy_socks_config_proto = out.File
  438. file_proxy_socks_config_proto_rawDesc = nil
  439. file_proxy_socks_config_proto_goTypes = nil
  440. file_proxy_socks_config_proto_depIdxs = nil
  441. }