config.pb.go 32 KB

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