config.pb.go 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: transport/internet/config.proto
  6. package internet
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. anypb "google.golang.org/protobuf/types/known/anypb"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type TransportProtocol int32
  21. const (
  22. TransportProtocol_TCP TransportProtocol = 0
  23. TransportProtocol_UDP TransportProtocol = 1
  24. TransportProtocol_MKCP TransportProtocol = 2
  25. TransportProtocol_WebSocket TransportProtocol = 3
  26. TransportProtocol_HTTP TransportProtocol = 4
  27. TransportProtocol_DomainSocket TransportProtocol = 5
  28. )
  29. // Enum value maps for TransportProtocol.
  30. var (
  31. TransportProtocol_name = map[int32]string{
  32. 0: "TCP",
  33. 1: "UDP",
  34. 2: "MKCP",
  35. 3: "WebSocket",
  36. 4: "HTTP",
  37. 5: "DomainSocket",
  38. }
  39. TransportProtocol_value = map[string]int32{
  40. "TCP": 0,
  41. "UDP": 1,
  42. "MKCP": 2,
  43. "WebSocket": 3,
  44. "HTTP": 4,
  45. "DomainSocket": 5,
  46. }
  47. )
  48. func (x TransportProtocol) Enum() *TransportProtocol {
  49. p := new(TransportProtocol)
  50. *p = x
  51. return p
  52. }
  53. func (x TransportProtocol) String() string {
  54. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  55. }
  56. func (TransportProtocol) Descriptor() protoreflect.EnumDescriptor {
  57. return file_transport_internet_config_proto_enumTypes[0].Descriptor()
  58. }
  59. func (TransportProtocol) Type() protoreflect.EnumType {
  60. return &file_transport_internet_config_proto_enumTypes[0]
  61. }
  62. func (x TransportProtocol) Number() protoreflect.EnumNumber {
  63. return protoreflect.EnumNumber(x)
  64. }
  65. // Deprecated: Use TransportProtocol.Descriptor instead.
  66. func (TransportProtocol) EnumDescriptor() ([]byte, []int) {
  67. return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
  68. }
  69. type SocketConfig_TCPFastOpenState int32
  70. const (
  71. // AsIs is to leave the current TFO state as is, unmodified.
  72. SocketConfig_AsIs SocketConfig_TCPFastOpenState = 0
  73. // Enable is for enabling TFO explictly.
  74. SocketConfig_Enable SocketConfig_TCPFastOpenState = 1
  75. // Disable is for disabling TFO explictly.
  76. SocketConfig_Disable SocketConfig_TCPFastOpenState = 2
  77. )
  78. // Enum value maps for SocketConfig_TCPFastOpenState.
  79. var (
  80. SocketConfig_TCPFastOpenState_name = map[int32]string{
  81. 0: "AsIs",
  82. 1: "Enable",
  83. 2: "Disable",
  84. }
  85. SocketConfig_TCPFastOpenState_value = map[string]int32{
  86. "AsIs": 0,
  87. "Enable": 1,
  88. "Disable": 2,
  89. }
  90. )
  91. func (x SocketConfig_TCPFastOpenState) Enum() *SocketConfig_TCPFastOpenState {
  92. p := new(SocketConfig_TCPFastOpenState)
  93. *p = x
  94. return p
  95. }
  96. func (x SocketConfig_TCPFastOpenState) String() string {
  97. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  98. }
  99. func (SocketConfig_TCPFastOpenState) Descriptor() protoreflect.EnumDescriptor {
  100. return file_transport_internet_config_proto_enumTypes[1].Descriptor()
  101. }
  102. func (SocketConfig_TCPFastOpenState) Type() protoreflect.EnumType {
  103. return &file_transport_internet_config_proto_enumTypes[1]
  104. }
  105. func (x SocketConfig_TCPFastOpenState) Number() protoreflect.EnumNumber {
  106. return protoreflect.EnumNumber(x)
  107. }
  108. // Deprecated: Use SocketConfig_TCPFastOpenState.Descriptor instead.
  109. func (SocketConfig_TCPFastOpenState) EnumDescriptor() ([]byte, []int) {
  110. return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 0}
  111. }
  112. type SocketConfig_TProxyMode int32
  113. const (
  114. // TProxy is off.
  115. SocketConfig_Off SocketConfig_TProxyMode = 0
  116. // TProxy mode.
  117. SocketConfig_TProxy SocketConfig_TProxyMode = 1
  118. // Redirect mode.
  119. SocketConfig_Redirect SocketConfig_TProxyMode = 2
  120. )
  121. // Enum value maps for SocketConfig_TProxyMode.
  122. var (
  123. SocketConfig_TProxyMode_name = map[int32]string{
  124. 0: "Off",
  125. 1: "TProxy",
  126. 2: "Redirect",
  127. }
  128. SocketConfig_TProxyMode_value = map[string]int32{
  129. "Off": 0,
  130. "TProxy": 1,
  131. "Redirect": 2,
  132. }
  133. )
  134. func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode {
  135. p := new(SocketConfig_TProxyMode)
  136. *p = x
  137. return p
  138. }
  139. func (x SocketConfig_TProxyMode) String() string {
  140. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  141. }
  142. func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor {
  143. return file_transport_internet_config_proto_enumTypes[2].Descriptor()
  144. }
  145. func (SocketConfig_TProxyMode) Type() protoreflect.EnumType {
  146. return &file_transport_internet_config_proto_enumTypes[2]
  147. }
  148. func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber {
  149. return protoreflect.EnumNumber(x)
  150. }
  151. // Deprecated: Use SocketConfig_TProxyMode.Descriptor instead.
  152. func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) {
  153. return file_transport_internet_config_proto_rawDescGZIP(), []int{3, 1}
  154. }
  155. type TransportConfig struct {
  156. state protoimpl.MessageState
  157. sizeCache protoimpl.SizeCache
  158. unknownFields protoimpl.UnknownFields
  159. // Type of network that this settings supports.
  160. // Deprecated. Use the string form below.
  161. //
  162. // Deprecated: Do not use.
  163. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  164. // Type of network that this settings supports.
  165. ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  166. // Specific settings. Must be of the transports.
  167. Settings *anypb.Any `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
  168. }
  169. func (x *TransportConfig) Reset() {
  170. *x = TransportConfig{}
  171. if protoimpl.UnsafeEnabled {
  172. mi := &file_transport_internet_config_proto_msgTypes[0]
  173. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  174. ms.StoreMessageInfo(mi)
  175. }
  176. }
  177. func (x *TransportConfig) String() string {
  178. return protoimpl.X.MessageStringOf(x)
  179. }
  180. func (*TransportConfig) ProtoMessage() {}
  181. func (x *TransportConfig) ProtoReflect() protoreflect.Message {
  182. mi := &file_transport_internet_config_proto_msgTypes[0]
  183. if protoimpl.UnsafeEnabled && x != nil {
  184. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  185. if ms.LoadMessageInfo() == nil {
  186. ms.StoreMessageInfo(mi)
  187. }
  188. return ms
  189. }
  190. return mi.MessageOf(x)
  191. }
  192. // Deprecated: Use TransportConfig.ProtoReflect.Descriptor instead.
  193. func (*TransportConfig) Descriptor() ([]byte, []int) {
  194. return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
  195. }
  196. // Deprecated: Do not use.
  197. func (x *TransportConfig) GetProtocol() TransportProtocol {
  198. if x != nil {
  199. return x.Protocol
  200. }
  201. return TransportProtocol_TCP
  202. }
  203. func (x *TransportConfig) GetProtocolName() string {
  204. if x != nil {
  205. return x.ProtocolName
  206. }
  207. return ""
  208. }
  209. func (x *TransportConfig) GetSettings() *anypb.Any {
  210. if x != nil {
  211. return x.Settings
  212. }
  213. return nil
  214. }
  215. type StreamConfig struct {
  216. state protoimpl.MessageState
  217. sizeCache protoimpl.SizeCache
  218. unknownFields protoimpl.UnknownFields
  219. // Effective network. Deprecated. Use the string form below.
  220. //
  221. // Deprecated: Do not use.
  222. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=v2ray.core.transport.internet.TransportProtocol" json:"protocol,omitempty"`
  223. // Effective network.
  224. ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  225. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  226. // Type of security. Must be a message name of the settings proto.
  227. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
  228. // Settings for transport security. For now the only choice is TLS.
  229. SecuritySettings []*anypb.Any `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  230. SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
  231. }
  232. func (x *StreamConfig) Reset() {
  233. *x = StreamConfig{}
  234. if protoimpl.UnsafeEnabled {
  235. mi := &file_transport_internet_config_proto_msgTypes[1]
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. ms.StoreMessageInfo(mi)
  238. }
  239. }
  240. func (x *StreamConfig) String() string {
  241. return protoimpl.X.MessageStringOf(x)
  242. }
  243. func (*StreamConfig) ProtoMessage() {}
  244. func (x *StreamConfig) ProtoReflect() protoreflect.Message {
  245. mi := &file_transport_internet_config_proto_msgTypes[1]
  246. if protoimpl.UnsafeEnabled && x != nil {
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. if ms.LoadMessageInfo() == nil {
  249. ms.StoreMessageInfo(mi)
  250. }
  251. return ms
  252. }
  253. return mi.MessageOf(x)
  254. }
  255. // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.
  256. func (*StreamConfig) Descriptor() ([]byte, []int) {
  257. return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
  258. }
  259. // Deprecated: Do not use.
  260. func (x *StreamConfig) GetProtocol() TransportProtocol {
  261. if x != nil {
  262. return x.Protocol
  263. }
  264. return TransportProtocol_TCP
  265. }
  266. func (x *StreamConfig) GetProtocolName() string {
  267. if x != nil {
  268. return x.ProtocolName
  269. }
  270. return ""
  271. }
  272. func (x *StreamConfig) GetTransportSettings() []*TransportConfig {
  273. if x != nil {
  274. return x.TransportSettings
  275. }
  276. return nil
  277. }
  278. func (x *StreamConfig) GetSecurityType() string {
  279. if x != nil {
  280. return x.SecurityType
  281. }
  282. return ""
  283. }
  284. func (x *StreamConfig) GetSecuritySettings() []*anypb.Any {
  285. if x != nil {
  286. return x.SecuritySettings
  287. }
  288. return nil
  289. }
  290. func (x *StreamConfig) GetSocketSettings() *SocketConfig {
  291. if x != nil {
  292. return x.SocketSettings
  293. }
  294. return nil
  295. }
  296. type ProxyConfig struct {
  297. state protoimpl.MessageState
  298. sizeCache protoimpl.SizeCache
  299. unknownFields protoimpl.UnknownFields
  300. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  301. TransportLayerProxy bool `protobuf:"varint,2,opt,name=transportLayerProxy,proto3" json:"transportLayerProxy,omitempty"`
  302. }
  303. func (x *ProxyConfig) Reset() {
  304. *x = ProxyConfig{}
  305. if protoimpl.UnsafeEnabled {
  306. mi := &file_transport_internet_config_proto_msgTypes[2]
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. ms.StoreMessageInfo(mi)
  309. }
  310. }
  311. func (x *ProxyConfig) String() string {
  312. return protoimpl.X.MessageStringOf(x)
  313. }
  314. func (*ProxyConfig) ProtoMessage() {}
  315. func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
  316. mi := &file_transport_internet_config_proto_msgTypes[2]
  317. if protoimpl.UnsafeEnabled && x != nil {
  318. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  319. if ms.LoadMessageInfo() == nil {
  320. ms.StoreMessageInfo(mi)
  321. }
  322. return ms
  323. }
  324. return mi.MessageOf(x)
  325. }
  326. // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
  327. func (*ProxyConfig) Descriptor() ([]byte, []int) {
  328. return file_transport_internet_config_proto_rawDescGZIP(), []int{2}
  329. }
  330. func (x *ProxyConfig) GetTag() string {
  331. if x != nil {
  332. return x.Tag
  333. }
  334. return ""
  335. }
  336. func (x *ProxyConfig) GetTransportLayerProxy() bool {
  337. if x != nil {
  338. return x.TransportLayerProxy
  339. }
  340. return false
  341. }
  342. // SocketConfig is options to be applied on network sockets.
  343. type SocketConfig struct {
  344. state protoimpl.MessageState
  345. sizeCache protoimpl.SizeCache
  346. unknownFields protoimpl.UnknownFields
  347. // Mark of the connection. If non-zero, the value will be set to SO_MARK.
  348. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
  349. // TFO is the state of TFO settings.
  350. Tfo SocketConfig_TCPFastOpenState `protobuf:"varint,2,opt,name=tfo,proto3,enum=v2ray.core.transport.internet.SocketConfig_TCPFastOpenState" json:"tfo,omitempty"`
  351. // TProxy is for enabling TProxy socket option.
  352. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=v2ray.core.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
  353. // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket
  354. // option. This option is for UDP only.
  355. ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
  356. BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
  357. BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
  358. AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  359. TcpKeepAliveInterval int32 `protobuf:"varint,8,opt,name=tcp_keep_alive_interval,json=tcpKeepAliveInterval,proto3" json:"tcp_keep_alive_interval,omitempty"`
  360. }
  361. func (x *SocketConfig) Reset() {
  362. *x = SocketConfig{}
  363. if protoimpl.UnsafeEnabled {
  364. mi := &file_transport_internet_config_proto_msgTypes[3]
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. ms.StoreMessageInfo(mi)
  367. }
  368. }
  369. func (x *SocketConfig) String() string {
  370. return protoimpl.X.MessageStringOf(x)
  371. }
  372. func (*SocketConfig) ProtoMessage() {}
  373. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  374. mi := &file_transport_internet_config_proto_msgTypes[3]
  375. if protoimpl.UnsafeEnabled && x != nil {
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. if ms.LoadMessageInfo() == nil {
  378. ms.StoreMessageInfo(mi)
  379. }
  380. return ms
  381. }
  382. return mi.MessageOf(x)
  383. }
  384. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  385. func (*SocketConfig) Descriptor() ([]byte, []int) {
  386. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  387. }
  388. func (x *SocketConfig) GetMark() int32 {
  389. if x != nil {
  390. return x.Mark
  391. }
  392. return 0
  393. }
  394. func (x *SocketConfig) GetTfo() SocketConfig_TCPFastOpenState {
  395. if x != nil {
  396. return x.Tfo
  397. }
  398. return SocketConfig_AsIs
  399. }
  400. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  401. if x != nil {
  402. return x.Tproxy
  403. }
  404. return SocketConfig_Off
  405. }
  406. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  407. if x != nil {
  408. return x.ReceiveOriginalDestAddress
  409. }
  410. return false
  411. }
  412. func (x *SocketConfig) GetBindAddress() []byte {
  413. if x != nil {
  414. return x.BindAddress
  415. }
  416. return nil
  417. }
  418. func (x *SocketConfig) GetBindPort() uint32 {
  419. if x != nil {
  420. return x.BindPort
  421. }
  422. return 0
  423. }
  424. func (x *SocketConfig) GetAcceptProxyProtocol() bool {
  425. if x != nil {
  426. return x.AcceptProxyProtocol
  427. }
  428. return false
  429. }
  430. func (x *SocketConfig) GetTcpKeepAliveInterval() int32 {
  431. if x != nil {
  432. return x.TcpKeepAliveInterval
  433. }
  434. return 0
  435. }
  436. var File_transport_internet_config_proto protoreflect.FileDescriptor
  437. var file_transport_internet_config_proto_rawDesc = []byte{
  438. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  439. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  440. 0x6f, 0x12, 0x1d, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72,
  441. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  442. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f,
  443. 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72,
  444. 0x6f, 0x74, 0x6f, 0x22, 0xba, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  445. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  446. 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61,
  447. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  448. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  449. 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52,
  450. 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f,
  451. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  452. 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x30,
  453. 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  454. 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
  455. 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  456. 0x22, 0xa2, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  457. 0x67, 0x12, 0x50, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20,
  458. 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  459. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
  460. 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f,
  461. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42, 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  462. 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f,
  463. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74,
  464. 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e,
  465. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02,
  466. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  467. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  468. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f,
  469. 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53,
  470. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72,
  471. 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
  472. 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x41, 0x0a, 0x11,
  473. 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  474. 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
  475. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x10, 0x73,
  476. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12,
  477. 0x54, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  478. 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  479. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  480. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  481. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74,
  482. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x51, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f,
  483. 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28,
  484. 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x30, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  485. 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20,
  486. 0x01, 0x28, 0x08, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61,
  487. 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x98, 0x04, 0x0a, 0x0c, 0x53, 0x6f, 0x63,
  488. 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72,
  489. 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x4e, 0x0a,
  490. 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x76, 0x32, 0x72,
  491. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  492. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65,
  493. 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f,
  494. 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x4e, 0x0a,
  495. 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x36, 0x2e,
  496. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  497. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f,
  498. 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78,
  499. 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a,
  500. 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
  501. 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04,
  502. 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69,
  503. 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  504. 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73,
  505. 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72,
  506. 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74,
  507. 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74,
  508. 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79,
  509. 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52,
  510. 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74,
  511. 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x35, 0x0a, 0x17, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70,
  512. 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18,
  513. 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c,
  514. 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x22, 0x35, 0x0a, 0x10, 0x54,
  515. 0x43, 0x50, 0x46, 0x61, 0x73, 0x74, 0x4f, 0x70, 0x65, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12,
  516. 0x08, 0x0a, 0x04, 0x41, 0x73, 0x49, 0x73, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x6e, 0x61,
  517. 0x62, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65,
  518. 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65,
  519. 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72,
  520. 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
  521. 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  522. 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x10,
  523. 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x4d, 0x4b,
  524. 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f, 0x63, 0x6b, 0x65,
  525. 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a,
  526. 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x10, 0x05, 0x42,
  527. 0x78, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  528. 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  529. 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  530. 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63,
  531. 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  532. 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x1d, 0x56, 0x32, 0x52, 0x61,
  533. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  534. 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  535. 0x33,
  536. }
  537. var (
  538. file_transport_internet_config_proto_rawDescOnce sync.Once
  539. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  540. )
  541. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  542. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  543. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  544. })
  545. return file_transport_internet_config_proto_rawDescData
  546. }
  547. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  548. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  549. var file_transport_internet_config_proto_goTypes = []interface{}{
  550. (TransportProtocol)(0), // 0: v2ray.core.transport.internet.TransportProtocol
  551. (SocketConfig_TCPFastOpenState)(0), // 1: v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  552. (SocketConfig_TProxyMode)(0), // 2: v2ray.core.transport.internet.SocketConfig.TProxyMode
  553. (*TransportConfig)(nil), // 3: v2ray.core.transport.internet.TransportConfig
  554. (*StreamConfig)(nil), // 4: v2ray.core.transport.internet.StreamConfig
  555. (*ProxyConfig)(nil), // 5: v2ray.core.transport.internet.ProxyConfig
  556. (*SocketConfig)(nil), // 6: v2ray.core.transport.internet.SocketConfig
  557. (*anypb.Any)(nil), // 7: google.protobuf.Any
  558. }
  559. var file_transport_internet_config_proto_depIdxs = []int32{
  560. 0, // 0: v2ray.core.transport.internet.TransportConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  561. 7, // 1: v2ray.core.transport.internet.TransportConfig.settings:type_name -> google.protobuf.Any
  562. 0, // 2: v2ray.core.transport.internet.StreamConfig.protocol:type_name -> v2ray.core.transport.internet.TransportProtocol
  563. 3, // 3: v2ray.core.transport.internet.StreamConfig.transport_settings:type_name -> v2ray.core.transport.internet.TransportConfig
  564. 7, // 4: v2ray.core.transport.internet.StreamConfig.security_settings:type_name -> google.protobuf.Any
  565. 6, // 5: v2ray.core.transport.internet.StreamConfig.socket_settings:type_name -> v2ray.core.transport.internet.SocketConfig
  566. 1, // 6: v2ray.core.transport.internet.SocketConfig.tfo:type_name -> v2ray.core.transport.internet.SocketConfig.TCPFastOpenState
  567. 2, // 7: v2ray.core.transport.internet.SocketConfig.tproxy:type_name -> v2ray.core.transport.internet.SocketConfig.TProxyMode
  568. 8, // [8:8] is the sub-list for method output_type
  569. 8, // [8:8] is the sub-list for method input_type
  570. 8, // [8:8] is the sub-list for extension type_name
  571. 8, // [8:8] is the sub-list for extension extendee
  572. 0, // [0:8] is the sub-list for field type_name
  573. }
  574. func init() { file_transport_internet_config_proto_init() }
  575. func file_transport_internet_config_proto_init() {
  576. if File_transport_internet_config_proto != nil {
  577. return
  578. }
  579. if !protoimpl.UnsafeEnabled {
  580. file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  581. switch v := v.(*TransportConfig); i {
  582. case 0:
  583. return &v.state
  584. case 1:
  585. return &v.sizeCache
  586. case 2:
  587. return &v.unknownFields
  588. default:
  589. return nil
  590. }
  591. }
  592. file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  593. switch v := v.(*StreamConfig); i {
  594. case 0:
  595. return &v.state
  596. case 1:
  597. return &v.sizeCache
  598. case 2:
  599. return &v.unknownFields
  600. default:
  601. return nil
  602. }
  603. }
  604. file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  605. switch v := v.(*ProxyConfig); i {
  606. case 0:
  607. return &v.state
  608. case 1:
  609. return &v.sizeCache
  610. case 2:
  611. return &v.unknownFields
  612. default:
  613. return nil
  614. }
  615. }
  616. file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  617. switch v := v.(*SocketConfig); i {
  618. case 0:
  619. return &v.state
  620. case 1:
  621. return &v.sizeCache
  622. case 2:
  623. return &v.unknownFields
  624. default:
  625. return nil
  626. }
  627. }
  628. }
  629. type x struct{}
  630. out := protoimpl.TypeBuilder{
  631. File: protoimpl.DescBuilder{
  632. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  633. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  634. NumEnums: 3,
  635. NumMessages: 4,
  636. NumExtensions: 0,
  637. NumServices: 0,
  638. },
  639. GoTypes: file_transport_internet_config_proto_goTypes,
  640. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  641. EnumInfos: file_transport_internet_config_proto_enumTypes,
  642. MessageInfos: file_transport_internet_config_proto_msgTypes,
  643. }.Build()
  644. File_transport_internet_config_proto = out.File
  645. file_transport_internet_config_proto_rawDesc = nil
  646. file_transport_internet_config_proto_goTypes = nil
  647. file_transport_internet_config_proto_depIdxs = nil
  648. }