config.pb.go 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025
  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 AddressPortStrategy int32
  86. const (
  87. AddressPortStrategy_None AddressPortStrategy = 0
  88. AddressPortStrategy_SrvPortOnly AddressPortStrategy = 1
  89. AddressPortStrategy_SrvAddressOnly AddressPortStrategy = 2
  90. AddressPortStrategy_SrvPortAndAddress AddressPortStrategy = 3
  91. AddressPortStrategy_TxtPortOnly AddressPortStrategy = 4
  92. AddressPortStrategy_TxtAddressOnly AddressPortStrategy = 5
  93. AddressPortStrategy_TxtPortAndAddress AddressPortStrategy = 6
  94. )
  95. // Enum value maps for AddressPortStrategy.
  96. var (
  97. AddressPortStrategy_name = map[int32]string{
  98. 0: "None",
  99. 1: "SrvPortOnly",
  100. 2: "SrvAddressOnly",
  101. 3: "SrvPortAndAddress",
  102. 4: "TxtPortOnly",
  103. 5: "TxtAddressOnly",
  104. 6: "TxtPortAndAddress",
  105. }
  106. AddressPortStrategy_value = map[string]int32{
  107. "None": 0,
  108. "SrvPortOnly": 1,
  109. "SrvAddressOnly": 2,
  110. "SrvPortAndAddress": 3,
  111. "TxtPortOnly": 4,
  112. "TxtAddressOnly": 5,
  113. "TxtPortAndAddress": 6,
  114. }
  115. )
  116. func (x AddressPortStrategy) Enum() *AddressPortStrategy {
  117. p := new(AddressPortStrategy)
  118. *p = x
  119. return p
  120. }
  121. func (x AddressPortStrategy) String() string {
  122. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  123. }
  124. func (AddressPortStrategy) Descriptor() protoreflect.EnumDescriptor {
  125. return file_transport_internet_config_proto_enumTypes[1].Descriptor()
  126. }
  127. func (AddressPortStrategy) Type() protoreflect.EnumType {
  128. return &file_transport_internet_config_proto_enumTypes[1]
  129. }
  130. func (x AddressPortStrategy) Number() protoreflect.EnumNumber {
  131. return protoreflect.EnumNumber(x)
  132. }
  133. // Deprecated: Use AddressPortStrategy.Descriptor instead.
  134. func (AddressPortStrategy) EnumDescriptor() ([]byte, []int) {
  135. return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
  136. }
  137. type SocketConfig_TProxyMode int32
  138. const (
  139. // TProxy is off.
  140. SocketConfig_Off SocketConfig_TProxyMode = 0
  141. // TProxy mode.
  142. SocketConfig_TProxy SocketConfig_TProxyMode = 1
  143. // Redirect mode.
  144. SocketConfig_Redirect SocketConfig_TProxyMode = 2
  145. )
  146. // Enum value maps for SocketConfig_TProxyMode.
  147. var (
  148. SocketConfig_TProxyMode_name = map[int32]string{
  149. 0: "Off",
  150. 1: "TProxy",
  151. 2: "Redirect",
  152. }
  153. SocketConfig_TProxyMode_value = map[string]int32{
  154. "Off": 0,
  155. "TProxy": 1,
  156. "Redirect": 2,
  157. }
  158. )
  159. func (x SocketConfig_TProxyMode) Enum() *SocketConfig_TProxyMode {
  160. p := new(SocketConfig_TProxyMode)
  161. *p = x
  162. return p
  163. }
  164. func (x SocketConfig_TProxyMode) String() string {
  165. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  166. }
  167. func (SocketConfig_TProxyMode) Descriptor() protoreflect.EnumDescriptor {
  168. return file_transport_internet_config_proto_enumTypes[2].Descriptor()
  169. }
  170. func (SocketConfig_TProxyMode) Type() protoreflect.EnumType {
  171. return &file_transport_internet_config_proto_enumTypes[2]
  172. }
  173. func (x SocketConfig_TProxyMode) Number() protoreflect.EnumNumber {
  174. return protoreflect.EnumNumber(x)
  175. }
  176. // Deprecated: Use SocketConfig_TProxyMode.Descriptor instead.
  177. func (SocketConfig_TProxyMode) EnumDescriptor() ([]byte, []int) {
  178. return file_transport_internet_config_proto_rawDescGZIP(), []int{4, 0}
  179. }
  180. type TransportConfig struct {
  181. state protoimpl.MessageState
  182. sizeCache protoimpl.SizeCache
  183. unknownFields protoimpl.UnknownFields
  184. // Transport protocol name.
  185. ProtocolName string `protobuf:"bytes,3,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  186. // Specific transport protocol settings.
  187. Settings *serial.TypedMessage `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"`
  188. }
  189. func (x *TransportConfig) Reset() {
  190. *x = TransportConfig{}
  191. mi := &file_transport_internet_config_proto_msgTypes[0]
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. ms.StoreMessageInfo(mi)
  194. }
  195. func (x *TransportConfig) String() string {
  196. return protoimpl.X.MessageStringOf(x)
  197. }
  198. func (*TransportConfig) ProtoMessage() {}
  199. func (x *TransportConfig) ProtoReflect() protoreflect.Message {
  200. mi := &file_transport_internet_config_proto_msgTypes[0]
  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 TransportConfig.ProtoReflect.Descriptor instead.
  211. func (*TransportConfig) Descriptor() ([]byte, []int) {
  212. return file_transport_internet_config_proto_rawDescGZIP(), []int{0}
  213. }
  214. func (x *TransportConfig) GetProtocolName() string {
  215. if x != nil {
  216. return x.ProtocolName
  217. }
  218. return ""
  219. }
  220. func (x *TransportConfig) GetSettings() *serial.TypedMessage {
  221. if x != nil {
  222. return x.Settings
  223. }
  224. return nil
  225. }
  226. type StreamConfig struct {
  227. state protoimpl.MessageState
  228. sizeCache protoimpl.SizeCache
  229. unknownFields protoimpl.UnknownFields
  230. Address *net.IPOrDomain `protobuf:"bytes,8,opt,name=address,proto3" json:"address,omitempty"`
  231. Port uint32 `protobuf:"varint,9,opt,name=port,proto3" json:"port,omitempty"`
  232. // Effective network.
  233. ProtocolName string `protobuf:"bytes,5,opt,name=protocol_name,json=protocolName,proto3" json:"protocol_name,omitempty"`
  234. TransportSettings []*TransportConfig `protobuf:"bytes,2,rep,name=transport_settings,json=transportSettings,proto3" json:"transport_settings,omitempty"`
  235. // Type of security. Must be a message name of the settings proto.
  236. SecurityType string `protobuf:"bytes,3,opt,name=security_type,json=securityType,proto3" json:"security_type,omitempty"`
  237. // Transport security settings. They can be either TLS or REALITY.
  238. SecuritySettings []*serial.TypedMessage `protobuf:"bytes,4,rep,name=security_settings,json=securitySettings,proto3" json:"security_settings,omitempty"`
  239. SocketSettings *SocketConfig `protobuf:"bytes,6,opt,name=socket_settings,json=socketSettings,proto3" json:"socket_settings,omitempty"`
  240. }
  241. func (x *StreamConfig) Reset() {
  242. *x = StreamConfig{}
  243. mi := &file_transport_internet_config_proto_msgTypes[1]
  244. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  245. ms.StoreMessageInfo(mi)
  246. }
  247. func (x *StreamConfig) String() string {
  248. return protoimpl.X.MessageStringOf(x)
  249. }
  250. func (*StreamConfig) ProtoMessage() {}
  251. func (x *StreamConfig) ProtoReflect() protoreflect.Message {
  252. mi := &file_transport_internet_config_proto_msgTypes[1]
  253. if x != nil {
  254. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  255. if ms.LoadMessageInfo() == nil {
  256. ms.StoreMessageInfo(mi)
  257. }
  258. return ms
  259. }
  260. return mi.MessageOf(x)
  261. }
  262. // Deprecated: Use StreamConfig.ProtoReflect.Descriptor instead.
  263. func (*StreamConfig) Descriptor() ([]byte, []int) {
  264. return file_transport_internet_config_proto_rawDescGZIP(), []int{1}
  265. }
  266. func (x *StreamConfig) GetAddress() *net.IPOrDomain {
  267. if x != nil {
  268. return x.Address
  269. }
  270. return nil
  271. }
  272. func (x *StreamConfig) GetPort() uint32 {
  273. if x != nil {
  274. return x.Port
  275. }
  276. return 0
  277. }
  278. func (x *StreamConfig) GetProtocolName() string {
  279. if x != nil {
  280. return x.ProtocolName
  281. }
  282. return ""
  283. }
  284. func (x *StreamConfig) GetTransportSettings() []*TransportConfig {
  285. if x != nil {
  286. return x.TransportSettings
  287. }
  288. return nil
  289. }
  290. func (x *StreamConfig) GetSecurityType() string {
  291. if x != nil {
  292. return x.SecurityType
  293. }
  294. return ""
  295. }
  296. func (x *StreamConfig) GetSecuritySettings() []*serial.TypedMessage {
  297. if x != nil {
  298. return x.SecuritySettings
  299. }
  300. return nil
  301. }
  302. func (x *StreamConfig) GetSocketSettings() *SocketConfig {
  303. if x != nil {
  304. return x.SocketSettings
  305. }
  306. return nil
  307. }
  308. type ProxyConfig struct {
  309. state protoimpl.MessageState
  310. sizeCache protoimpl.SizeCache
  311. unknownFields protoimpl.UnknownFields
  312. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  313. TransportLayerProxy bool `protobuf:"varint,2,opt,name=transportLayerProxy,proto3" json:"transportLayerProxy,omitempty"`
  314. }
  315. func (x *ProxyConfig) Reset() {
  316. *x = ProxyConfig{}
  317. mi := &file_transport_internet_config_proto_msgTypes[2]
  318. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  319. ms.StoreMessageInfo(mi)
  320. }
  321. func (x *ProxyConfig) String() string {
  322. return protoimpl.X.MessageStringOf(x)
  323. }
  324. func (*ProxyConfig) ProtoMessage() {}
  325. func (x *ProxyConfig) ProtoReflect() protoreflect.Message {
  326. mi := &file_transport_internet_config_proto_msgTypes[2]
  327. if x != nil {
  328. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  329. if ms.LoadMessageInfo() == nil {
  330. ms.StoreMessageInfo(mi)
  331. }
  332. return ms
  333. }
  334. return mi.MessageOf(x)
  335. }
  336. // Deprecated: Use ProxyConfig.ProtoReflect.Descriptor instead.
  337. func (*ProxyConfig) Descriptor() ([]byte, []int) {
  338. return file_transport_internet_config_proto_rawDescGZIP(), []int{2}
  339. }
  340. func (x *ProxyConfig) GetTag() string {
  341. if x != nil {
  342. return x.Tag
  343. }
  344. return ""
  345. }
  346. func (x *ProxyConfig) GetTransportLayerProxy() bool {
  347. if x != nil {
  348. return x.TransportLayerProxy
  349. }
  350. return false
  351. }
  352. type CustomSockopt struct {
  353. state protoimpl.MessageState
  354. sizeCache protoimpl.SizeCache
  355. unknownFields protoimpl.UnknownFields
  356. System string `protobuf:"bytes,1,opt,name=system,proto3" json:"system,omitempty"`
  357. Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
  358. Level string `protobuf:"bytes,3,opt,name=level,proto3" json:"level,omitempty"`
  359. Opt string `protobuf:"bytes,4,opt,name=opt,proto3" json:"opt,omitempty"`
  360. Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
  361. Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
  362. }
  363. func (x *CustomSockopt) Reset() {
  364. *x = CustomSockopt{}
  365. mi := &file_transport_internet_config_proto_msgTypes[3]
  366. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  367. ms.StoreMessageInfo(mi)
  368. }
  369. func (x *CustomSockopt) String() string {
  370. return protoimpl.X.MessageStringOf(x)
  371. }
  372. func (*CustomSockopt) ProtoMessage() {}
  373. func (x *CustomSockopt) ProtoReflect() protoreflect.Message {
  374. mi := &file_transport_internet_config_proto_msgTypes[3]
  375. if x != nil {
  376. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  377. if ms.LoadMessageInfo() == nil {
  378. ms.StoreMessageInfo(mi)
  379. }
  380. return ms
  381. }
  382. return mi.MessageOf(x)
  383. }
  384. // Deprecated: Use CustomSockopt.ProtoReflect.Descriptor instead.
  385. func (*CustomSockopt) Descriptor() ([]byte, []int) {
  386. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  387. }
  388. func (x *CustomSockopt) GetSystem() string {
  389. if x != nil {
  390. return x.System
  391. }
  392. return ""
  393. }
  394. func (x *CustomSockopt) GetNetwork() string {
  395. if x != nil {
  396. return x.Network
  397. }
  398. return ""
  399. }
  400. func (x *CustomSockopt) GetLevel() string {
  401. if x != nil {
  402. return x.Level
  403. }
  404. return ""
  405. }
  406. func (x *CustomSockopt) GetOpt() string {
  407. if x != nil {
  408. return x.Opt
  409. }
  410. return ""
  411. }
  412. func (x *CustomSockopt) GetValue() string {
  413. if x != nil {
  414. return x.Value
  415. }
  416. return ""
  417. }
  418. func (x *CustomSockopt) GetType() string {
  419. if x != nil {
  420. return x.Type
  421. }
  422. return ""
  423. }
  424. // SocketConfig is options to be applied on network sockets.
  425. type SocketConfig struct {
  426. state protoimpl.MessageState
  427. sizeCache protoimpl.SizeCache
  428. unknownFields protoimpl.UnknownFields
  429. // Mark of the connection. If non-zero, the value will be set to SO_MARK.
  430. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
  431. // TFO is the state of TFO settings.
  432. Tfo int32 `protobuf:"varint,2,opt,name=tfo,proto3" json:"tfo,omitempty"`
  433. // TProxy is for enabling TProxy socket option.
  434. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=xray.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
  435. // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket
  436. // option. This option is for UDP only.
  437. ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
  438. BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
  439. BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
  440. AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  441. DomainStrategy DomainStrategy `protobuf:"varint,8,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.transport.internet.DomainStrategy" json:"domain_strategy,omitempty"`
  442. DialerProxy string `protobuf:"bytes,9,opt,name=dialer_proxy,json=dialerProxy,proto3" json:"dialer_proxy,omitempty"`
  443. TcpKeepAliveInterval int32 `protobuf:"varint,10,opt,name=tcp_keep_alive_interval,json=tcpKeepAliveInterval,proto3" json:"tcp_keep_alive_interval,omitempty"`
  444. TcpKeepAliveIdle int32 `protobuf:"varint,11,opt,name=tcp_keep_alive_idle,json=tcpKeepAliveIdle,proto3" json:"tcp_keep_alive_idle,omitempty"`
  445. TcpCongestion string `protobuf:"bytes,12,opt,name=tcp_congestion,json=tcpCongestion,proto3" json:"tcp_congestion,omitempty"`
  446. Interface string `protobuf:"bytes,13,opt,name=interface,proto3" json:"interface,omitempty"`
  447. V6Only bool `protobuf:"varint,14,opt,name=v6only,proto3" json:"v6only,omitempty"`
  448. TcpWindowClamp int32 `protobuf:"varint,15,opt,name=tcp_window_clamp,json=tcpWindowClamp,proto3" json:"tcp_window_clamp,omitempty"`
  449. TcpUserTimeout int32 `protobuf:"varint,16,opt,name=tcp_user_timeout,json=tcpUserTimeout,proto3" json:"tcp_user_timeout,omitempty"`
  450. TcpMaxSeg int32 `protobuf:"varint,17,opt,name=tcp_max_seg,json=tcpMaxSeg,proto3" json:"tcp_max_seg,omitempty"`
  451. Penetrate bool `protobuf:"varint,18,opt,name=penetrate,proto3" json:"penetrate,omitempty"`
  452. TcpMptcp bool `protobuf:"varint,19,opt,name=tcp_mptcp,json=tcpMptcp,proto3" json:"tcp_mptcp,omitempty"`
  453. CustomSockopt []*CustomSockopt `protobuf:"bytes,20,rep,name=customSockopt,proto3" json:"customSockopt,omitempty"`
  454. AddressPortStrategy AddressPortStrategy `protobuf:"varint,21,opt,name=address_port_strategy,json=addressPortStrategy,proto3,enum=xray.transport.internet.AddressPortStrategy" json:"address_port_strategy,omitempty"`
  455. HappyEyeballs *HappyEyeballsConfig `protobuf:"bytes,22,opt,name=happy_eyeballs,json=happyEyeballs,proto3" json:"happy_eyeballs,omitempty"`
  456. }
  457. func (x *SocketConfig) Reset() {
  458. *x = SocketConfig{}
  459. mi := &file_transport_internet_config_proto_msgTypes[4]
  460. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  461. ms.StoreMessageInfo(mi)
  462. }
  463. func (x *SocketConfig) String() string {
  464. return protoimpl.X.MessageStringOf(x)
  465. }
  466. func (*SocketConfig) ProtoMessage() {}
  467. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  468. mi := &file_transport_internet_config_proto_msgTypes[4]
  469. if x != nil {
  470. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  471. if ms.LoadMessageInfo() == nil {
  472. ms.StoreMessageInfo(mi)
  473. }
  474. return ms
  475. }
  476. return mi.MessageOf(x)
  477. }
  478. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  479. func (*SocketConfig) Descriptor() ([]byte, []int) {
  480. return file_transport_internet_config_proto_rawDescGZIP(), []int{4}
  481. }
  482. func (x *SocketConfig) GetMark() int32 {
  483. if x != nil {
  484. return x.Mark
  485. }
  486. return 0
  487. }
  488. func (x *SocketConfig) GetTfo() int32 {
  489. if x != nil {
  490. return x.Tfo
  491. }
  492. return 0
  493. }
  494. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  495. if x != nil {
  496. return x.Tproxy
  497. }
  498. return SocketConfig_Off
  499. }
  500. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  501. if x != nil {
  502. return x.ReceiveOriginalDestAddress
  503. }
  504. return false
  505. }
  506. func (x *SocketConfig) GetBindAddress() []byte {
  507. if x != nil {
  508. return x.BindAddress
  509. }
  510. return nil
  511. }
  512. func (x *SocketConfig) GetBindPort() uint32 {
  513. if x != nil {
  514. return x.BindPort
  515. }
  516. return 0
  517. }
  518. func (x *SocketConfig) GetAcceptProxyProtocol() bool {
  519. if x != nil {
  520. return x.AcceptProxyProtocol
  521. }
  522. return false
  523. }
  524. func (x *SocketConfig) GetDomainStrategy() DomainStrategy {
  525. if x != nil {
  526. return x.DomainStrategy
  527. }
  528. return DomainStrategy_AS_IS
  529. }
  530. func (x *SocketConfig) GetDialerProxy() string {
  531. if x != nil {
  532. return x.DialerProxy
  533. }
  534. return ""
  535. }
  536. func (x *SocketConfig) GetTcpKeepAliveInterval() int32 {
  537. if x != nil {
  538. return x.TcpKeepAliveInterval
  539. }
  540. return 0
  541. }
  542. func (x *SocketConfig) GetTcpKeepAliveIdle() int32 {
  543. if x != nil {
  544. return x.TcpKeepAliveIdle
  545. }
  546. return 0
  547. }
  548. func (x *SocketConfig) GetTcpCongestion() string {
  549. if x != nil {
  550. return x.TcpCongestion
  551. }
  552. return ""
  553. }
  554. func (x *SocketConfig) GetInterface() string {
  555. if x != nil {
  556. return x.Interface
  557. }
  558. return ""
  559. }
  560. func (x *SocketConfig) GetV6Only() bool {
  561. if x != nil {
  562. return x.V6Only
  563. }
  564. return false
  565. }
  566. func (x *SocketConfig) GetTcpWindowClamp() int32 {
  567. if x != nil {
  568. return x.TcpWindowClamp
  569. }
  570. return 0
  571. }
  572. func (x *SocketConfig) GetTcpUserTimeout() int32 {
  573. if x != nil {
  574. return x.TcpUserTimeout
  575. }
  576. return 0
  577. }
  578. func (x *SocketConfig) GetTcpMaxSeg() int32 {
  579. if x != nil {
  580. return x.TcpMaxSeg
  581. }
  582. return 0
  583. }
  584. func (x *SocketConfig) GetPenetrate() bool {
  585. if x != nil {
  586. return x.Penetrate
  587. }
  588. return false
  589. }
  590. func (x *SocketConfig) GetTcpMptcp() bool {
  591. if x != nil {
  592. return x.TcpMptcp
  593. }
  594. return false
  595. }
  596. func (x *SocketConfig) GetCustomSockopt() []*CustomSockopt {
  597. if x != nil {
  598. return x.CustomSockopt
  599. }
  600. return nil
  601. }
  602. func (x *SocketConfig) GetAddressPortStrategy() AddressPortStrategy {
  603. if x != nil {
  604. return x.AddressPortStrategy
  605. }
  606. return AddressPortStrategy_None
  607. }
  608. func (x *SocketConfig) GetHappyEyeballs() *HappyEyeballsConfig {
  609. if x != nil {
  610. return x.HappyEyeballs
  611. }
  612. return nil
  613. }
  614. type HappyEyeballsConfig struct {
  615. state protoimpl.MessageState
  616. sizeCache protoimpl.SizeCache
  617. unknownFields protoimpl.UnknownFields
  618. PrioritizeIpv6 bool `protobuf:"varint,1,opt,name=prioritize_ipv6,json=prioritizeIpv6,proto3" json:"prioritize_ipv6,omitempty"`
  619. Interleave uint32 `protobuf:"varint,2,opt,name=interleave,proto3" json:"interleave,omitempty"`
  620. TryDelayMs uint64 `protobuf:"varint,3,opt,name=try_delayMs,json=tryDelayMs,proto3" json:"try_delayMs,omitempty"`
  621. MaxConcurrentTry uint32 `protobuf:"varint,4,opt,name=max_concurrent_try,json=maxConcurrentTry,proto3" json:"max_concurrent_try,omitempty"`
  622. }
  623. func (x *HappyEyeballsConfig) Reset() {
  624. *x = HappyEyeballsConfig{}
  625. mi := &file_transport_internet_config_proto_msgTypes[5]
  626. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  627. ms.StoreMessageInfo(mi)
  628. }
  629. func (x *HappyEyeballsConfig) String() string {
  630. return protoimpl.X.MessageStringOf(x)
  631. }
  632. func (*HappyEyeballsConfig) ProtoMessage() {}
  633. func (x *HappyEyeballsConfig) ProtoReflect() protoreflect.Message {
  634. mi := &file_transport_internet_config_proto_msgTypes[5]
  635. if x != nil {
  636. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  637. if ms.LoadMessageInfo() == nil {
  638. ms.StoreMessageInfo(mi)
  639. }
  640. return ms
  641. }
  642. return mi.MessageOf(x)
  643. }
  644. // Deprecated: Use HappyEyeballsConfig.ProtoReflect.Descriptor instead.
  645. func (*HappyEyeballsConfig) Descriptor() ([]byte, []int) {
  646. return file_transport_internet_config_proto_rawDescGZIP(), []int{5}
  647. }
  648. func (x *HappyEyeballsConfig) GetPrioritizeIpv6() bool {
  649. if x != nil {
  650. return x.PrioritizeIpv6
  651. }
  652. return false
  653. }
  654. func (x *HappyEyeballsConfig) GetInterleave() uint32 {
  655. if x != nil {
  656. return x.Interleave
  657. }
  658. return 0
  659. }
  660. func (x *HappyEyeballsConfig) GetTryDelayMs() uint64 {
  661. if x != nil {
  662. return x.TryDelayMs
  663. }
  664. return 0
  665. }
  666. func (x *HappyEyeballsConfig) GetMaxConcurrentTry() uint32 {
  667. if x != nil {
  668. return x.MaxConcurrentTry
  669. }
  670. return 0
  671. }
  672. var File_transport_internet_config_proto protoreflect.FileDescriptor
  673. var file_transport_internet_config_proto_rawDesc = []byte{
  674. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  675. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  676. 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  677. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  678. 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
  679. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63,
  680. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  681. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73,
  682. 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72,
  683. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  684. 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  685. 0x3c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
  686. 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  687. 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73,
  688. 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x9b, 0x03,
  689. 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35,
  690. 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
  691. 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  692. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
  693. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20,
  694. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f,
  695. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  696. 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x57,
  697. 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74,
  698. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x78, 0x72, 0x61,
  699. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  700. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f,
  701. 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53,
  702. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72,
  703. 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
  704. 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4d, 0x0a, 0x11,
  705. 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  706. 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
  707. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70,
  708. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72,
  709. 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4e, 0x0a, 0x0f, 0x73,
  710. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06,
  711. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  712. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53,
  713. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63,
  714. 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x51, 0x0a, 0x0b, 0x50,
  715. 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61,
  716. 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x30, 0x0a, 0x13,
  717. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72,
  718. 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73,
  719. 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x93,
  720. 0x01, 0x0a, 0x0d, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f, 0x70, 0x74,
  721. 0x12, 0x16, 0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  722. 0x52, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x65, 0x74, 0x77,
  723. 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x65, 0x74, 0x77, 0x6f,
  724. 0x72, 0x6b, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28,
  725. 0x09, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x70, 0x74, 0x18,
  726. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x70, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61,
  727. 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  728. 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  729. 0x74, 0x79, 0x70, 0x65, 0x22, 0xd2, 0x08, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43,
  730. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20,
  731. 0x01, 0x28, 0x05, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x66, 0x6f,
  732. 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x06, 0x74,
  733. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x72,
  734. 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  735. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66,
  736. 0x69, 0x67, 0x2e, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74,
  737. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  738. 0x5f, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61,
  739. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65,
  740. 0x63, 0x65, 0x69, 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73,
  741. 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64,
  742. 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b,
  743. 0x62, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62,
  744. 0x69, 0x6e, 0x64, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08,
  745. 0x62, 0x69, 0x6e, 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65,
  746. 0x70, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  747. 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50,
  748. 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x50, 0x0a, 0x0f,
  749. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18,
  750. 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61,
  751. 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e,
  752. 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e,
  753. 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21,
  754. 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x09,
  755. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78,
  756. 0x79, 0x12, 0x35, 0x0a, 0x17, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c,
  757. 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x0a, 0x20, 0x01,
  758. 0x28, 0x05, 0x52, 0x14, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65,
  759. 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x13, 0x74, 0x63, 0x70, 0x5f,
  760. 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x18,
  761. 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c,
  762. 0x69, 0x76, 0x65, 0x49, 0x64, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x63, 0x70, 0x5f, 0x63,
  763. 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52,
  764. 0x0d, 0x74, 0x63, 0x70, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c,
  765. 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
  766. 0x09, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06,
  767. 0x76, 0x36, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x36,
  768. 0x6f, 0x6e, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x63, 0x70, 0x5f, 0x77, 0x69, 0x6e, 0x64,
  769. 0x6f, 0x77, 0x5f, 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e,
  770. 0x74, 0x63, 0x70, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x43, 0x6c, 0x61, 0x6d, 0x70, 0x12, 0x28,
  771. 0x0a, 0x10, 0x74, 0x63, 0x70, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f,
  772. 0x75, 0x74, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74, 0x63, 0x70, 0x55, 0x73, 0x65,
  773. 0x72, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x74, 0x63, 0x70, 0x5f,
  774. 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x65, 0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74,
  775. 0x63, 0x70, 0x4d, 0x61, 0x78, 0x53, 0x65, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x65, 0x6e, 0x65,
  776. 0x74, 0x72, 0x61, 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x65, 0x6e,
  777. 0x65, 0x74, 0x72, 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x70,
  778. 0x74, 0x63, 0x70, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x63, 0x70, 0x4d, 0x70,
  779. 0x74, 0x63, 0x70, 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63,
  780. 0x6b, 0x6f, 0x70, 0x74, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x78, 0x72, 0x61,
  781. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  782. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f,
  783. 0x70, 0x74, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f, 0x70,
  784. 0x74, 0x12, 0x60, 0x0a, 0x15, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x72,
  785. 0x74, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e,
  786. 0x32, 0x2c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  787. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65,
  788. 0x73, 0x73, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x13,
  789. 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74,
  790. 0x65, 0x67, 0x79, 0x12, 0x53, 0x0a, 0x0e, 0x68, 0x61, 0x70, 0x70, 0x79, 0x5f, 0x65, 0x79, 0x65,
  791. 0x62, 0x61, 0x6c, 0x6c, 0x73, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x78, 0x72,
  792. 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  793. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x48, 0x61, 0x70, 0x70, 0x79, 0x45, 0x79, 0x65, 0x62, 0x61,
  794. 0x6c, 0x6c, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0d, 0x68, 0x61, 0x70, 0x70, 0x79,
  795. 0x45, 0x79, 0x65, 0x62, 0x61, 0x6c, 0x6c, 0x73, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f,
  796. 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12,
  797. 0x0a, 0x0a, 0x06, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52,
  798. 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x10, 0x02, 0x22, 0xad, 0x01, 0x0a, 0x13, 0x48, 0x61,
  799. 0x70, 0x70, 0x79, 0x45, 0x79, 0x65, 0x62, 0x61, 0x6c, 0x6c, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  800. 0x67, 0x12, 0x27, 0x0a, 0x0f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x5f,
  801. 0x69, 0x70, 0x76, 0x36, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x70, 0x72, 0x69, 0x6f,
  802. 0x72, 0x69, 0x74, 0x69, 0x7a, 0x65, 0x49, 0x70, 0x76, 0x36, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x6e,
  803. 0x74, 0x65, 0x72, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a,
  804. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x72,
  805. 0x79, 0x5f, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x4d, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52,
  806. 0x0a, 0x74, 0x72, 0x79, 0x44, 0x65, 0x6c, 0x61, 0x79, 0x4d, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x6d,
  807. 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x72,
  808. 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x43, 0x6f, 0x6e, 0x63,
  809. 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x79, 0x2a, 0xa9, 0x01, 0x0a, 0x0e, 0x44, 0x6f,
  810. 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05,
  811. 0x41, 0x53, 0x5f, 0x49, 0x53, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49,
  812. 0x50, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02,
  813. 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x12, 0x0c, 0x0a,
  814. 0x08, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x36, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x55,
  815. 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x34, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52,
  816. 0x43, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45,
  817. 0x5f, 0x49, 0x50, 0x34, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f,
  818. 0x49, 0x50, 0x36, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49,
  819. 0x50, 0x34, 0x36, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49,
  820. 0x50, 0x36, 0x34, 0x10, 0x0a, 0x2a, 0x97, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
  821. 0x73, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a,
  822. 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x72, 0x76, 0x50, 0x6f,
  823. 0x72, 0x74, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x72, 0x76, 0x41,
  824. 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11,
  825. 0x53, 0x72, 0x76, 0x50, 0x6f, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
  826. 0x73, 0x10, 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x78, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x4f, 0x6e,
  827. 0x6c, 0x79, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x54, 0x78, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65,
  828. 0x73, 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x78, 0x74, 0x50,
  829. 0x6f, 0x72, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0x06, 0x42,
  830. 0x67, 0x0a, 0x1b, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  831. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01,
  832. 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c,
  833. 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e,
  834. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02,
  835. 0x17, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  836. 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  837. }
  838. var (
  839. file_transport_internet_config_proto_rawDescOnce sync.Once
  840. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  841. )
  842. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  843. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  844. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  845. })
  846. return file_transport_internet_config_proto_rawDescData
  847. }
  848. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  849. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  850. var file_transport_internet_config_proto_goTypes = []any{
  851. (DomainStrategy)(0), // 0: xray.transport.internet.DomainStrategy
  852. (AddressPortStrategy)(0), // 1: xray.transport.internet.AddressPortStrategy
  853. (SocketConfig_TProxyMode)(0), // 2: xray.transport.internet.SocketConfig.TProxyMode
  854. (*TransportConfig)(nil), // 3: xray.transport.internet.TransportConfig
  855. (*StreamConfig)(nil), // 4: xray.transport.internet.StreamConfig
  856. (*ProxyConfig)(nil), // 5: xray.transport.internet.ProxyConfig
  857. (*CustomSockopt)(nil), // 6: xray.transport.internet.CustomSockopt
  858. (*SocketConfig)(nil), // 7: xray.transport.internet.SocketConfig
  859. (*HappyEyeballsConfig)(nil), // 8: xray.transport.internet.HappyEyeballsConfig
  860. (*serial.TypedMessage)(nil), // 9: xray.common.serial.TypedMessage
  861. (*net.IPOrDomain)(nil), // 10: xray.common.net.IPOrDomain
  862. }
  863. var file_transport_internet_config_proto_depIdxs = []int32{
  864. 9, // 0: xray.transport.internet.TransportConfig.settings:type_name -> xray.common.serial.TypedMessage
  865. 10, // 1: xray.transport.internet.StreamConfig.address:type_name -> xray.common.net.IPOrDomain
  866. 3, // 2: xray.transport.internet.StreamConfig.transport_settings:type_name -> xray.transport.internet.TransportConfig
  867. 9, // 3: xray.transport.internet.StreamConfig.security_settings:type_name -> xray.common.serial.TypedMessage
  868. 7, // 4: xray.transport.internet.StreamConfig.socket_settings:type_name -> xray.transport.internet.SocketConfig
  869. 2, // 5: xray.transport.internet.SocketConfig.tproxy:type_name -> xray.transport.internet.SocketConfig.TProxyMode
  870. 0, // 6: xray.transport.internet.SocketConfig.domain_strategy:type_name -> xray.transport.internet.DomainStrategy
  871. 6, // 7: xray.transport.internet.SocketConfig.customSockopt:type_name -> xray.transport.internet.CustomSockopt
  872. 1, // 8: xray.transport.internet.SocketConfig.address_port_strategy:type_name -> xray.transport.internet.AddressPortStrategy
  873. 8, // 9: xray.transport.internet.SocketConfig.happy_eyeballs:type_name -> xray.transport.internet.HappyEyeballsConfig
  874. 10, // [10:10] is the sub-list for method output_type
  875. 10, // [10:10] is the sub-list for method input_type
  876. 10, // [10:10] is the sub-list for extension type_name
  877. 10, // [10:10] is the sub-list for extension extendee
  878. 0, // [0:10] is the sub-list for field type_name
  879. }
  880. func init() { file_transport_internet_config_proto_init() }
  881. func file_transport_internet_config_proto_init() {
  882. if File_transport_internet_config_proto != nil {
  883. return
  884. }
  885. type x struct{}
  886. out := protoimpl.TypeBuilder{
  887. File: protoimpl.DescBuilder{
  888. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  889. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  890. NumEnums: 3,
  891. NumMessages: 6,
  892. NumExtensions: 0,
  893. NumServices: 0,
  894. },
  895. GoTypes: file_transport_internet_config_proto_goTypes,
  896. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  897. EnumInfos: file_transport_internet_config_proto_enumTypes,
  898. MessageInfos: file_transport_internet_config_proto_msgTypes,
  899. }.Build()
  900. File_transport_internet_config_proto = out.File
  901. file_transport_internet_config_proto_rawDesc = nil
  902. file_transport_internet_config_proto_goTypes = nil
  903. file_transport_internet_config_proto_depIdxs = nil
  904. }