config.pb.go 18 KB

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