config.pb.go 33 KB

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