config.pb.go 34 KB

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