config.pb.go 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  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. DelayAuthWrite bool `protobuf:"varint,3,opt,name=delay_auth_write,json=delayAuthWrite,proto3" json:"delay_auth_write,omitempty"`
  237. }
  238. func (x *ClientConfig) Reset() {
  239. *x = ClientConfig{}
  240. if protoimpl.UnsafeEnabled {
  241. mi := &file_proxy_socks_config_proto_msgTypes[2]
  242. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  243. ms.StoreMessageInfo(mi)
  244. }
  245. }
  246. func (x *ClientConfig) String() string {
  247. return protoimpl.X.MessageStringOf(x)
  248. }
  249. func (*ClientConfig) ProtoMessage() {}
  250. func (x *ClientConfig) ProtoReflect() protoreflect.Message {
  251. mi := &file_proxy_socks_config_proto_msgTypes[2]
  252. if protoimpl.UnsafeEnabled && x != nil {
  253. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  254. if ms.LoadMessageInfo() == nil {
  255. ms.StoreMessageInfo(mi)
  256. }
  257. return ms
  258. }
  259. return mi.MessageOf(x)
  260. }
  261. // Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.
  262. func (*ClientConfig) Descriptor() ([]byte, []int) {
  263. return file_proxy_socks_config_proto_rawDescGZIP(), []int{2}
  264. }
  265. func (x *ClientConfig) GetServer() []*protocol.ServerEndpoint {
  266. if x != nil {
  267. return x.Server
  268. }
  269. return nil
  270. }
  271. func (x *ClientConfig) GetVersion() Version {
  272. if x != nil {
  273. return x.Version
  274. }
  275. return Version_SOCKS5
  276. }
  277. func (x *ClientConfig) GetDelayAuthWrite() bool {
  278. if x != nil {
  279. return x.DelayAuthWrite
  280. }
  281. return false
  282. }
  283. var File_proxy_socks_config_proto protoreflect.FileDescriptor
  284. var file_proxy_socks_config_proto_rawDesc = []byte{
  285. 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0x2f, 0x63, 0x6f,
  286. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x76, 0x32, 0x72, 0x61,
  287. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63,
  288. 0x6b, 0x73, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61,
  289. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x63, 0x6f,
  290. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x61,
  291. 0x64, 0x64, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  292. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  293. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  294. 0x6f, 0x74, 0x6f, 0x22, 0x41, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1a,
  295. 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  296. 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61,
  297. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61,
  298. 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0xc9, 0x03, 0x0a, 0x0c, 0x53, 0x65, 0x72, 0x76, 0x65,
  299. 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x09, 0x61, 0x75, 0x74, 0x68, 0x5f,
  300. 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72,
  301. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f,
  302. 0x63, 0x6b, 0x73, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x61, 0x75,
  303. 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4e, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
  304. 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  305. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
  306. 0x73, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x41,
  307. 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x61, 0x63,
  308. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  309. 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  310. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e,
  311. 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
  312. 0x65, 0x73, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x64, 0x70, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  313. 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x64, 0x70, 0x45, 0x6e, 0x61,
  314. 0x62, 0x6c, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18,
  315. 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f,
  316. 0x75, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  317. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65,
  318. 0x6c, 0x12, 0x52, 0x0a, 0x0f, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x65, 0x6e, 0x63, 0x6f,
  319. 0x64, 0x69, 0x6e, 0x67, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x76, 0x32, 0x72,
  320. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x70, 0x61, 0x63, 0x6b,
  321. 0x65, 0x74, 0x61, 0x64, 0x64, 0x72, 0x2e, 0x50, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x41, 0x64, 0x64,
  322. 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0e, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x45, 0x6e, 0x63,
  323. 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x1a, 0x3b, 0x0a, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  324. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  325. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  326. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  327. 0x38, 0x01, 0x22, 0xb7, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x6f, 0x6e,
  328. 0x66, 0x69, 0x67, 0x12, 0x42, 0x0a, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20,
  329. 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  330. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  331. 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52,
  332. 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  333. 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  334. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
  335. 0x73, 0x2e, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69,
  336. 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x61, 0x75, 0x74, 0x68,
  337. 0x5f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x65,
  338. 0x6c, 0x61, 0x79, 0x41, 0x75, 0x74, 0x68, 0x57, 0x72, 0x69, 0x74, 0x65, 0x2a, 0x25, 0x0a, 0x08,
  339. 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x4f, 0x5f, 0x41,
  340. 0x55, 0x54, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52,
  341. 0x44, 0x10, 0x01, 0x2a, 0x2e, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0a,
  342. 0x0a, 0x06, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x35, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x4f,
  343. 0x43, 0x4b, 0x53, 0x34, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x4f, 0x43, 0x4b, 0x53, 0x34,
  344. 0x41, 0x10, 0x02, 0x42, 0x63, 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  345. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x73, 0x6f, 0x63, 0x6b,
  346. 0x73, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  347. 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65,
  348. 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x73, 0x6f, 0x63, 0x6b, 0x73, 0xaa,
  349. 0x02, 0x16, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  350. 0x78, 0x79, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  351. }
  352. var (
  353. file_proxy_socks_config_proto_rawDescOnce sync.Once
  354. file_proxy_socks_config_proto_rawDescData = file_proxy_socks_config_proto_rawDesc
  355. )
  356. func file_proxy_socks_config_proto_rawDescGZIP() []byte {
  357. file_proxy_socks_config_proto_rawDescOnce.Do(func() {
  358. file_proxy_socks_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_socks_config_proto_rawDescData)
  359. })
  360. return file_proxy_socks_config_proto_rawDescData
  361. }
  362. var file_proxy_socks_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
  363. var file_proxy_socks_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  364. var file_proxy_socks_config_proto_goTypes = []interface{}{
  365. (AuthType)(0), // 0: v2ray.core.proxy.socks.AuthType
  366. (Version)(0), // 1: v2ray.core.proxy.socks.Version
  367. (*Account)(nil), // 2: v2ray.core.proxy.socks.Account
  368. (*ServerConfig)(nil), // 3: v2ray.core.proxy.socks.ServerConfig
  369. (*ClientConfig)(nil), // 4: v2ray.core.proxy.socks.ClientConfig
  370. nil, // 5: v2ray.core.proxy.socks.ServerConfig.AccountsEntry
  371. (*net.IPOrDomain)(nil), // 6: v2ray.core.common.net.IPOrDomain
  372. (packetaddr.PacketAddrType)(0), // 7: v2ray.core.net.packetaddr.PacketAddrType
  373. (*protocol.ServerEndpoint)(nil), // 8: v2ray.core.common.protocol.ServerEndpoint
  374. }
  375. var file_proxy_socks_config_proto_depIdxs = []int32{
  376. 0, // 0: v2ray.core.proxy.socks.ServerConfig.auth_type:type_name -> v2ray.core.proxy.socks.AuthType
  377. 5, // 1: v2ray.core.proxy.socks.ServerConfig.accounts:type_name -> v2ray.core.proxy.socks.ServerConfig.AccountsEntry
  378. 6, // 2: v2ray.core.proxy.socks.ServerConfig.address:type_name -> v2ray.core.common.net.IPOrDomain
  379. 7, // 3: v2ray.core.proxy.socks.ServerConfig.packet_encoding:type_name -> v2ray.core.net.packetaddr.PacketAddrType
  380. 8, // 4: v2ray.core.proxy.socks.ClientConfig.server:type_name -> v2ray.core.common.protocol.ServerEndpoint
  381. 1, // 5: v2ray.core.proxy.socks.ClientConfig.version:type_name -> v2ray.core.proxy.socks.Version
  382. 6, // [6:6] is the sub-list for method output_type
  383. 6, // [6:6] is the sub-list for method input_type
  384. 6, // [6:6] is the sub-list for extension type_name
  385. 6, // [6:6] is the sub-list for extension extendee
  386. 0, // [0:6] is the sub-list for field type_name
  387. }
  388. func init() { file_proxy_socks_config_proto_init() }
  389. func file_proxy_socks_config_proto_init() {
  390. if File_proxy_socks_config_proto != nil {
  391. return
  392. }
  393. if !protoimpl.UnsafeEnabled {
  394. file_proxy_socks_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  395. switch v := v.(*Account); i {
  396. case 0:
  397. return &v.state
  398. case 1:
  399. return &v.sizeCache
  400. case 2:
  401. return &v.unknownFields
  402. default:
  403. return nil
  404. }
  405. }
  406. file_proxy_socks_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  407. switch v := v.(*ServerConfig); i {
  408. case 0:
  409. return &v.state
  410. case 1:
  411. return &v.sizeCache
  412. case 2:
  413. return &v.unknownFields
  414. default:
  415. return nil
  416. }
  417. }
  418. file_proxy_socks_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  419. switch v := v.(*ClientConfig); i {
  420. case 0:
  421. return &v.state
  422. case 1:
  423. return &v.sizeCache
  424. case 2:
  425. return &v.unknownFields
  426. default:
  427. return nil
  428. }
  429. }
  430. }
  431. type x struct{}
  432. out := protoimpl.TypeBuilder{
  433. File: protoimpl.DescBuilder{
  434. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  435. RawDescriptor: file_proxy_socks_config_proto_rawDesc,
  436. NumEnums: 2,
  437. NumMessages: 4,
  438. NumExtensions: 0,
  439. NumServices: 0,
  440. },
  441. GoTypes: file_proxy_socks_config_proto_goTypes,
  442. DependencyIndexes: file_proxy_socks_config_proto_depIdxs,
  443. EnumInfos: file_proxy_socks_config_proto_enumTypes,
  444. MessageInfos: file_proxy_socks_config_proto_msgTypes,
  445. }.Build()
  446. File_proxy_socks_config_proto = out.File
  447. file_proxy_socks_config_proto_rawDesc = nil
  448. file_proxy_socks_config_proto_goTypes = nil
  449. file_proxy_socks_config_proto_depIdxs = nil
  450. }