config.pb.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.24.1
  5. // source: transport/internet/config.proto
  6. package internet
  7. import (
  8. serial "github.com/xtls/xray-core/common/serial"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  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 DomainStrategy int32
  70. const (
  71. DomainStrategy_AS_IS DomainStrategy = 0
  72. DomainStrategy_USE_IP DomainStrategy = 1
  73. DomainStrategy_USE_IP4 DomainStrategy = 2
  74. DomainStrategy_USE_IP6 DomainStrategy = 3
  75. )
  76. // Enum value maps for DomainStrategy.
  77. var (
  78. DomainStrategy_name = map[int32]string{
  79. 0: "AS_IS",
  80. 1: "USE_IP",
  81. 2: "USE_IP4",
  82. 3: "USE_IP6",
  83. }
  84. DomainStrategy_value = map[string]int32{
  85. "AS_IS": 0,
  86. "USE_IP": 1,
  87. "USE_IP4": 2,
  88. "USE_IP6": 3,
  89. }
  90. )
  91. func (x DomainStrategy) Enum() *DomainStrategy {
  92. p := new(DomainStrategy)
  93. *p = x
  94. return p
  95. }
  96. func (x DomainStrategy) String() string {
  97. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  98. }
  99. func (DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  100. return file_transport_internet_config_proto_enumTypes[1].Descriptor()
  101. }
  102. func (DomainStrategy) Type() protoreflect.EnumType {
  103. return &file_transport_internet_config_proto_enumTypes[1]
  104. }
  105. func (x DomainStrategy) Number() protoreflect.EnumNumber {
  106. return protoreflect.EnumNumber(x)
  107. }
  108. // Deprecated: Use DomainStrategy.Descriptor instead.
  109. func (DomainStrategy) EnumDescriptor() ([]byte, []int) {
  110. return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
  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, 0}
  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: Marked as deprecated in transport/internet/config.proto.
  163. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=xray.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 *serial.TypedMessage `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: Marked as deprecated in transport/internet/config.proto.
  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() *serial.TypedMessage {
  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: Marked as deprecated in transport/internet/config.proto.
  222. Protocol TransportProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=xray.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 []*serial.TypedMessage `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: Marked as deprecated in transport/internet/config.proto.
  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() []*serial.TypedMessage {
  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 int32 `protobuf:"varint,2,opt,name=tfo,proto3" json:"tfo,omitempty"`
  351. // TProxy is for enabling TProxy socket option.
  352. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=xray.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. DomainStrategy DomainStrategy `protobuf:"varint,8,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.transport.internet.DomainStrategy" json:"domain_strategy,omitempty"`
  360. DialerProxy string `protobuf:"bytes,9,opt,name=dialer_proxy,json=dialerProxy,proto3" json:"dialer_proxy,omitempty"`
  361. TcpKeepAliveInterval int32 `protobuf:"varint,10,opt,name=tcp_keep_alive_interval,json=tcpKeepAliveInterval,proto3" json:"tcp_keep_alive_interval,omitempty"`
  362. TcpKeepAliveIdle int32 `protobuf:"varint,11,opt,name=tcp_keep_alive_idle,json=tcpKeepAliveIdle,proto3" json:"tcp_keep_alive_idle,omitempty"`
  363. TcpCongestion string `protobuf:"bytes,12,opt,name=tcp_congestion,json=tcpCongestion,proto3" json:"tcp_congestion,omitempty"`
  364. Interface string `protobuf:"bytes,13,opt,name=interface,proto3" json:"interface,omitempty"`
  365. V6Only bool `protobuf:"varint,14,opt,name=v6only,proto3" json:"v6only,omitempty"`
  366. TcpWindowClamp int32 `protobuf:"varint,15,opt,name=tcp_window_clamp,json=tcpWindowClamp,proto3" json:"tcp_window_clamp,omitempty"`
  367. TcpUserTimeout int32 `protobuf:"varint,16,opt,name=tcp_user_timeout,json=tcpUserTimeout,proto3" json:"tcp_user_timeout,omitempty"`
  368. TcpMaxSeg int32 `protobuf:"varint,17,opt,name=tcp_max_seg,json=tcpMaxSeg,proto3" json:"tcp_max_seg,omitempty"`
  369. TcpNoDelay bool `protobuf:"varint,18,opt,name=tcp_no_delay,json=tcpNoDelay,proto3" json:"tcp_no_delay,omitempty"`
  370. TcpMptcp bool `protobuf:"varint,19,opt,name=tcp_mptcp,json=tcpMptcp,proto3" json:"tcp_mptcp,omitempty"`
  371. }
  372. func (x *SocketConfig) Reset() {
  373. *x = SocketConfig{}
  374. if protoimpl.UnsafeEnabled {
  375. mi := &file_transport_internet_config_proto_msgTypes[3]
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. ms.StoreMessageInfo(mi)
  378. }
  379. }
  380. func (x *SocketConfig) String() string {
  381. return protoimpl.X.MessageStringOf(x)
  382. }
  383. func (*SocketConfig) ProtoMessage() {}
  384. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  385. mi := &file_transport_internet_config_proto_msgTypes[3]
  386. if protoimpl.UnsafeEnabled && x != nil {
  387. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  388. if ms.LoadMessageInfo() == nil {
  389. ms.StoreMessageInfo(mi)
  390. }
  391. return ms
  392. }
  393. return mi.MessageOf(x)
  394. }
  395. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  396. func (*SocketConfig) Descriptor() ([]byte, []int) {
  397. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  398. }
  399. func (x *SocketConfig) GetMark() int32 {
  400. if x != nil {
  401. return x.Mark
  402. }
  403. return 0
  404. }
  405. func (x *SocketConfig) GetTfo() int32 {
  406. if x != nil {
  407. return x.Tfo
  408. }
  409. return 0
  410. }
  411. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  412. if x != nil {
  413. return x.Tproxy
  414. }
  415. return SocketConfig_Off
  416. }
  417. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  418. if x != nil {
  419. return x.ReceiveOriginalDestAddress
  420. }
  421. return false
  422. }
  423. func (x *SocketConfig) GetBindAddress() []byte {
  424. if x != nil {
  425. return x.BindAddress
  426. }
  427. return nil
  428. }
  429. func (x *SocketConfig) GetBindPort() uint32 {
  430. if x != nil {
  431. return x.BindPort
  432. }
  433. return 0
  434. }
  435. func (x *SocketConfig) GetAcceptProxyProtocol() bool {
  436. if x != nil {
  437. return x.AcceptProxyProtocol
  438. }
  439. return false
  440. }
  441. func (x *SocketConfig) GetDomainStrategy() DomainStrategy {
  442. if x != nil {
  443. return x.DomainStrategy
  444. }
  445. return DomainStrategy_AS_IS
  446. }
  447. func (x *SocketConfig) GetDialerProxy() string {
  448. if x != nil {
  449. return x.DialerProxy
  450. }
  451. return ""
  452. }
  453. func (x *SocketConfig) GetTcpKeepAliveInterval() int32 {
  454. if x != nil {
  455. return x.TcpKeepAliveInterval
  456. }
  457. return 0
  458. }
  459. func (x *SocketConfig) GetTcpKeepAliveIdle() int32 {
  460. if x != nil {
  461. return x.TcpKeepAliveIdle
  462. }
  463. return 0
  464. }
  465. func (x *SocketConfig) GetTcpCongestion() string {
  466. if x != nil {
  467. return x.TcpCongestion
  468. }
  469. return ""
  470. }
  471. func (x *SocketConfig) GetInterface() string {
  472. if x != nil {
  473. return x.Interface
  474. }
  475. return ""
  476. }
  477. func (x *SocketConfig) GetV6Only() bool {
  478. if x != nil {
  479. return x.V6Only
  480. }
  481. return false
  482. }
  483. func (x *SocketConfig) GetTcpWindowClamp() int32 {
  484. if x != nil {
  485. return x.TcpWindowClamp
  486. }
  487. return 0
  488. }
  489. func (x *SocketConfig) GetTcpUserTimeout() int32 {
  490. if x != nil {
  491. return x.TcpUserTimeout
  492. }
  493. return 0
  494. }
  495. func (x *SocketConfig) GetTcpMaxSeg() int32 {
  496. if x != nil {
  497. return x.TcpMaxSeg
  498. }
  499. return 0
  500. }
  501. func (x *SocketConfig) GetTcpNoDelay() bool {
  502. if x != nil {
  503. return x.TcpNoDelay
  504. }
  505. return false
  506. }
  507. func (x *SocketConfig) GetTcpMptcp() bool {
  508. if x != nil {
  509. return x.TcpMptcp
  510. }
  511. return false
  512. }
  513. var File_transport_internet_config_proto protoreflect.FileDescriptor
  514. var file_transport_internet_config_proto_rawDesc = []byte{
  515. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  516. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  517. 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  518. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  519. 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
  520. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc0, 0x01,
  521. 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  522. 0x67, 0x12, 0x4a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20,
  523. 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  524. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72,
  525. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42,
  526. 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a,
  527. 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03,
  528. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61,
  529. 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02,
  530. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  531. 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d,
  532. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73,
  533. 0x22, 0x9c, 0x03, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  534. 0x67, 0x12, 0x4a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20,
  535. 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  536. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72,
  537. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x42,
  538. 0x02, 0x18, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x23, 0x0a,
  539. 0x0d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05,
  540. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61,
  541. 0x6d, 0x65, 0x12, 0x57, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f,
  542. 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28,
  543. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  544. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
  545. 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  546. 0x6f, 0x72, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73,
  547. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
  548. 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65,
  549. 0x12, 0x4d, 0x0a, 0x11, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74,
  550. 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72,
  551. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c,
  552. 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73,
  553. 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12,
  554. 0x4e, 0x0a, 0x0f, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,
  555. 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  556. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  557. 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
  558. 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22,
  559. 0x51, 0x0a, 0x0b, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10,
  560. 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67,
  561. 0x12, 0x30, 0x0a, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79,
  562. 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74,
  563. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f,
  564. 0x78, 0x79, 0x22, 0xd1, 0x06, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e,
  565. 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
  566. 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02,
  567. 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x06, 0x74, 0x70, 0x72,
  568. 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79,
  569. 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72,
  570. 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  571. 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72,
  572. 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f,
  573. 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64,
  574. 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65,
  575. 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41,
  576. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61,
  577. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69,
  578. 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e,
  579. 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69,
  580. 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74,
  581. 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18,
  582. 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f,
  583. 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x50, 0x0a, 0x0f, 0x64, 0x6f,
  584. 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x08, 0x20,
  585. 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  586. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f,
  587. 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f,
  588. 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x0c,
  589. 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x09, 0x20, 0x01,
  590. 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12,
  591. 0x35, 0x0a, 0x17, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76,
  592. 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05,
  593. 0x52, 0x14, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e,
  594. 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x13, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65,
  595. 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x18, 0x0b, 0x20,
  596. 0x01, 0x28, 0x05, 0x52, 0x10, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76,
  597. 0x65, 0x49, 0x64, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x63, 0x70, 0x5f, 0x63, 0x6f, 0x6e,
  598. 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74,
  599. 0x63, 0x70, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09,
  600. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52,
  601. 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x36,
  602. 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x36, 0x6f, 0x6e,
  603. 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x63, 0x70, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77,
  604. 0x5f, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74, 0x63,
  605. 0x70, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x43, 0x6c, 0x61, 0x6d, 0x70, 0x12, 0x28, 0x0a, 0x10,
  606. 0x74, 0x63, 0x70, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  607. 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74, 0x63, 0x70, 0x55, 0x73, 0x65, 0x72, 0x54,
  608. 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x61,
  609. 0x78, 0x5f, 0x73, 0x65, 0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x63, 0x70,
  610. 0x4d, 0x61, 0x78, 0x53, 0x65, 0x67, 0x12, 0x20, 0x0a, 0x0c, 0x74, 0x63, 0x70, 0x5f, 0x6e, 0x6f,
  611. 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x74, 0x63,
  612. 0x70, 0x4e, 0x6f, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x63, 0x70, 0x5f,
  613. 0x6d, 0x70, 0x74, 0x63, 0x70, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x63, 0x70,
  614. 0x4d, 0x70, 0x74, 0x63, 0x70, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d,
  615. 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
  616. 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69,
  617. 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x2a, 0x5a, 0x0a, 0x11, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70,
  618. 0x6f, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x07, 0x0a, 0x03, 0x54,
  619. 0x43, 0x50, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x10, 0x01, 0x12, 0x08, 0x0a,
  620. 0x04, 0x4d, 0x4b, 0x43, 0x50, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x53, 0x6f,
  621. 0x63, 0x6b, 0x65, 0x74, 0x10, 0x03, 0x12, 0x08, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x10, 0x04,
  622. 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74,
  623. 0x10, 0x05, 0x2a, 0x41, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61,
  624. 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12,
  625. 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55,
  626. 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f,
  627. 0x49, 0x50, 0x36, 0x10, 0x03, 0x42, 0x67, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61,
  628. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  629. 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  630. 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  631. 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  632. 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x17, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e,
  633. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06,
  634. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  635. }
  636. var (
  637. file_transport_internet_config_proto_rawDescOnce sync.Once
  638. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  639. )
  640. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  641. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  642. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  643. })
  644. return file_transport_internet_config_proto_rawDescData
  645. }
  646. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  647. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  648. var file_transport_internet_config_proto_goTypes = []interface{}{
  649. (TransportProtocol)(0), // 0: xray.transport.internet.TransportProtocol
  650. (DomainStrategy)(0), // 1: xray.transport.internet.DomainStrategy
  651. (SocketConfig_TProxyMode)(0), // 2: xray.transport.internet.SocketConfig.TProxyMode
  652. (*TransportConfig)(nil), // 3: xray.transport.internet.TransportConfig
  653. (*StreamConfig)(nil), // 4: xray.transport.internet.StreamConfig
  654. (*ProxyConfig)(nil), // 5: xray.transport.internet.ProxyConfig
  655. (*SocketConfig)(nil), // 6: xray.transport.internet.SocketConfig
  656. (*serial.TypedMessage)(nil), // 7: xray.common.serial.TypedMessage
  657. }
  658. var file_transport_internet_config_proto_depIdxs = []int32{
  659. 0, // 0: xray.transport.internet.TransportConfig.protocol:type_name -> xray.transport.internet.TransportProtocol
  660. 7, // 1: xray.transport.internet.TransportConfig.settings:type_name -> xray.common.serial.TypedMessage
  661. 0, // 2: xray.transport.internet.StreamConfig.protocol:type_name -> xray.transport.internet.TransportProtocol
  662. 3, // 3: xray.transport.internet.StreamConfig.transport_settings:type_name -> xray.transport.internet.TransportConfig
  663. 7, // 4: xray.transport.internet.StreamConfig.security_settings:type_name -> xray.common.serial.TypedMessage
  664. 6, // 5: xray.transport.internet.StreamConfig.socket_settings:type_name -> xray.transport.internet.SocketConfig
  665. 2, // 6: xray.transport.internet.SocketConfig.tproxy:type_name -> xray.transport.internet.SocketConfig.TProxyMode
  666. 1, // 7: xray.transport.internet.SocketConfig.domain_strategy:type_name -> xray.transport.internet.DomainStrategy
  667. 8, // [8:8] is the sub-list for method output_type
  668. 8, // [8:8] is the sub-list for method input_type
  669. 8, // [8:8] is the sub-list for extension type_name
  670. 8, // [8:8] is the sub-list for extension extendee
  671. 0, // [0:8] is the sub-list for field type_name
  672. }
  673. func init() { file_transport_internet_config_proto_init() }
  674. func file_transport_internet_config_proto_init() {
  675. if File_transport_internet_config_proto != nil {
  676. return
  677. }
  678. if !protoimpl.UnsafeEnabled {
  679. file_transport_internet_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  680. switch v := v.(*TransportConfig); i {
  681. case 0:
  682. return &v.state
  683. case 1:
  684. return &v.sizeCache
  685. case 2:
  686. return &v.unknownFields
  687. default:
  688. return nil
  689. }
  690. }
  691. file_transport_internet_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  692. switch v := v.(*StreamConfig); i {
  693. case 0:
  694. return &v.state
  695. case 1:
  696. return &v.sizeCache
  697. case 2:
  698. return &v.unknownFields
  699. default:
  700. return nil
  701. }
  702. }
  703. file_transport_internet_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  704. switch v := v.(*ProxyConfig); i {
  705. case 0:
  706. return &v.state
  707. case 1:
  708. return &v.sizeCache
  709. case 2:
  710. return &v.unknownFields
  711. default:
  712. return nil
  713. }
  714. }
  715. file_transport_internet_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  716. switch v := v.(*SocketConfig); i {
  717. case 0:
  718. return &v.state
  719. case 1:
  720. return &v.sizeCache
  721. case 2:
  722. return &v.unknownFields
  723. default:
  724. return nil
  725. }
  726. }
  727. }
  728. type x struct{}
  729. out := protoimpl.TypeBuilder{
  730. File: protoimpl.DescBuilder{
  731. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  732. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  733. NumEnums: 3,
  734. NumMessages: 4,
  735. NumExtensions: 0,
  736. NumServices: 0,
  737. },
  738. GoTypes: file_transport_internet_config_proto_goTypes,
  739. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  740. EnumInfos: file_transport_internet_config_proto_enumTypes,
  741. MessageInfos: file_transport_internet_config_proto_msgTypes,
  742. }.Build()
  743. File_transport_internet_config_proto = out.File
  744. file_transport_internet_config_proto_rawDesc = nil
  745. file_transport_internet_config_proto_goTypes = nil
  746. file_transport_internet_config_proto_depIdxs = nil
  747. }