config.pb.go 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921
  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. Level string `protobuf:"bytes,1,opt,name=level,proto3" json:"level,omitempty"`
  357. Opt string `protobuf:"bytes,2,opt,name=opt,proto3" json:"opt,omitempty"`
  358. Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
  359. Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
  360. }
  361. func (x *CustomSockopt) Reset() {
  362. *x = CustomSockopt{}
  363. mi := &file_transport_internet_config_proto_msgTypes[3]
  364. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  365. ms.StoreMessageInfo(mi)
  366. }
  367. func (x *CustomSockopt) String() string {
  368. return protoimpl.X.MessageStringOf(x)
  369. }
  370. func (*CustomSockopt) ProtoMessage() {}
  371. func (x *CustomSockopt) ProtoReflect() protoreflect.Message {
  372. mi := &file_transport_internet_config_proto_msgTypes[3]
  373. if x != nil {
  374. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  375. if ms.LoadMessageInfo() == nil {
  376. ms.StoreMessageInfo(mi)
  377. }
  378. return ms
  379. }
  380. return mi.MessageOf(x)
  381. }
  382. // Deprecated: Use CustomSockopt.ProtoReflect.Descriptor instead.
  383. func (*CustomSockopt) Descriptor() ([]byte, []int) {
  384. return file_transport_internet_config_proto_rawDescGZIP(), []int{3}
  385. }
  386. func (x *CustomSockopt) GetLevel() string {
  387. if x != nil {
  388. return x.Level
  389. }
  390. return ""
  391. }
  392. func (x *CustomSockopt) GetOpt() string {
  393. if x != nil {
  394. return x.Opt
  395. }
  396. return ""
  397. }
  398. func (x *CustomSockopt) GetValue() string {
  399. if x != nil {
  400. return x.Value
  401. }
  402. return ""
  403. }
  404. func (x *CustomSockopt) GetType() string {
  405. if x != nil {
  406. return x.Type
  407. }
  408. return ""
  409. }
  410. // SocketConfig is options to be applied on network sockets.
  411. type SocketConfig struct {
  412. state protoimpl.MessageState
  413. sizeCache protoimpl.SizeCache
  414. unknownFields protoimpl.UnknownFields
  415. // Mark of the connection. If non-zero, the value will be set to SO_MARK.
  416. Mark int32 `protobuf:"varint,1,opt,name=mark,proto3" json:"mark,omitempty"`
  417. // TFO is the state of TFO settings.
  418. Tfo int32 `protobuf:"varint,2,opt,name=tfo,proto3" json:"tfo,omitempty"`
  419. // TProxy is for enabling TProxy socket option.
  420. Tproxy SocketConfig_TProxyMode `protobuf:"varint,3,opt,name=tproxy,proto3,enum=xray.transport.internet.SocketConfig_TProxyMode" json:"tproxy,omitempty"`
  421. // ReceiveOriginalDestAddress is for enabling IP_RECVORIGDSTADDR socket
  422. // option. This option is for UDP only.
  423. ReceiveOriginalDestAddress bool `protobuf:"varint,4,opt,name=receive_original_dest_address,json=receiveOriginalDestAddress,proto3" json:"receive_original_dest_address,omitempty"`
  424. BindAddress []byte `protobuf:"bytes,5,opt,name=bind_address,json=bindAddress,proto3" json:"bind_address,omitempty"`
  425. BindPort uint32 `protobuf:"varint,6,opt,name=bind_port,json=bindPort,proto3" json:"bind_port,omitempty"`
  426. AcceptProxyProtocol bool `protobuf:"varint,7,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"`
  427. DomainStrategy DomainStrategy `protobuf:"varint,8,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.transport.internet.DomainStrategy" json:"domain_strategy,omitempty"`
  428. DialerProxy string `protobuf:"bytes,9,opt,name=dialer_proxy,json=dialerProxy,proto3" json:"dialer_proxy,omitempty"`
  429. TcpKeepAliveInterval int32 `protobuf:"varint,10,opt,name=tcp_keep_alive_interval,json=tcpKeepAliveInterval,proto3" json:"tcp_keep_alive_interval,omitempty"`
  430. TcpKeepAliveIdle int32 `protobuf:"varint,11,opt,name=tcp_keep_alive_idle,json=tcpKeepAliveIdle,proto3" json:"tcp_keep_alive_idle,omitempty"`
  431. TcpCongestion string `protobuf:"bytes,12,opt,name=tcp_congestion,json=tcpCongestion,proto3" json:"tcp_congestion,omitempty"`
  432. Interface string `protobuf:"bytes,13,opt,name=interface,proto3" json:"interface,omitempty"`
  433. V6Only bool `protobuf:"varint,14,opt,name=v6only,proto3" json:"v6only,omitempty"`
  434. TcpWindowClamp int32 `protobuf:"varint,15,opt,name=tcp_window_clamp,json=tcpWindowClamp,proto3" json:"tcp_window_clamp,omitempty"`
  435. TcpUserTimeout int32 `protobuf:"varint,16,opt,name=tcp_user_timeout,json=tcpUserTimeout,proto3" json:"tcp_user_timeout,omitempty"`
  436. TcpMaxSeg int32 `protobuf:"varint,17,opt,name=tcp_max_seg,json=tcpMaxSeg,proto3" json:"tcp_max_seg,omitempty"`
  437. Penetrate bool `protobuf:"varint,18,opt,name=penetrate,proto3" json:"penetrate,omitempty"`
  438. TcpMptcp bool `protobuf:"varint,19,opt,name=tcp_mptcp,json=tcpMptcp,proto3" json:"tcp_mptcp,omitempty"`
  439. CustomSockopt []*CustomSockopt `protobuf:"bytes,20,rep,name=customSockopt,proto3" json:"customSockopt,omitempty"`
  440. AddressPortStrategy AddressPortStrategy `protobuf:"varint,21,opt,name=address_port_strategy,json=addressPortStrategy,proto3,enum=xray.transport.internet.AddressPortStrategy" json:"address_port_strategy,omitempty"`
  441. DialTimeout int32 `protobuf:"varint,22,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
  442. }
  443. func (x *SocketConfig) Reset() {
  444. *x = SocketConfig{}
  445. mi := &file_transport_internet_config_proto_msgTypes[4]
  446. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  447. ms.StoreMessageInfo(mi)
  448. }
  449. func (x *SocketConfig) String() string {
  450. return protoimpl.X.MessageStringOf(x)
  451. }
  452. func (*SocketConfig) ProtoMessage() {}
  453. func (x *SocketConfig) ProtoReflect() protoreflect.Message {
  454. mi := &file_transport_internet_config_proto_msgTypes[4]
  455. if x != nil {
  456. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  457. if ms.LoadMessageInfo() == nil {
  458. ms.StoreMessageInfo(mi)
  459. }
  460. return ms
  461. }
  462. return mi.MessageOf(x)
  463. }
  464. // Deprecated: Use SocketConfig.ProtoReflect.Descriptor instead.
  465. func (*SocketConfig) Descriptor() ([]byte, []int) {
  466. return file_transport_internet_config_proto_rawDescGZIP(), []int{4}
  467. }
  468. func (x *SocketConfig) GetMark() int32 {
  469. if x != nil {
  470. return x.Mark
  471. }
  472. return 0
  473. }
  474. func (x *SocketConfig) GetTfo() int32 {
  475. if x != nil {
  476. return x.Tfo
  477. }
  478. return 0
  479. }
  480. func (x *SocketConfig) GetTproxy() SocketConfig_TProxyMode {
  481. if x != nil {
  482. return x.Tproxy
  483. }
  484. return SocketConfig_Off
  485. }
  486. func (x *SocketConfig) GetReceiveOriginalDestAddress() bool {
  487. if x != nil {
  488. return x.ReceiveOriginalDestAddress
  489. }
  490. return false
  491. }
  492. func (x *SocketConfig) GetBindAddress() []byte {
  493. if x != nil {
  494. return x.BindAddress
  495. }
  496. return nil
  497. }
  498. func (x *SocketConfig) GetBindPort() uint32 {
  499. if x != nil {
  500. return x.BindPort
  501. }
  502. return 0
  503. }
  504. func (x *SocketConfig) GetAcceptProxyProtocol() bool {
  505. if x != nil {
  506. return x.AcceptProxyProtocol
  507. }
  508. return false
  509. }
  510. func (x *SocketConfig) GetDomainStrategy() DomainStrategy {
  511. if x != nil {
  512. return x.DomainStrategy
  513. }
  514. return DomainStrategy_AS_IS
  515. }
  516. func (x *SocketConfig) GetDialerProxy() string {
  517. if x != nil {
  518. return x.DialerProxy
  519. }
  520. return ""
  521. }
  522. func (x *SocketConfig) GetTcpKeepAliveInterval() int32 {
  523. if x != nil {
  524. return x.TcpKeepAliveInterval
  525. }
  526. return 0
  527. }
  528. func (x *SocketConfig) GetTcpKeepAliveIdle() int32 {
  529. if x != nil {
  530. return x.TcpKeepAliveIdle
  531. }
  532. return 0
  533. }
  534. func (x *SocketConfig) GetTcpCongestion() string {
  535. if x != nil {
  536. return x.TcpCongestion
  537. }
  538. return ""
  539. }
  540. func (x *SocketConfig) GetInterface() string {
  541. if x != nil {
  542. return x.Interface
  543. }
  544. return ""
  545. }
  546. func (x *SocketConfig) GetV6Only() bool {
  547. if x != nil {
  548. return x.V6Only
  549. }
  550. return false
  551. }
  552. func (x *SocketConfig) GetTcpWindowClamp() int32 {
  553. if x != nil {
  554. return x.TcpWindowClamp
  555. }
  556. return 0
  557. }
  558. func (x *SocketConfig) GetTcpUserTimeout() int32 {
  559. if x != nil {
  560. return x.TcpUserTimeout
  561. }
  562. return 0
  563. }
  564. func (x *SocketConfig) GetTcpMaxSeg() int32 {
  565. if x != nil {
  566. return x.TcpMaxSeg
  567. }
  568. return 0
  569. }
  570. func (x *SocketConfig) GetPenetrate() bool {
  571. if x != nil {
  572. return x.Penetrate
  573. }
  574. return false
  575. }
  576. func (x *SocketConfig) GetTcpMptcp() bool {
  577. if x != nil {
  578. return x.TcpMptcp
  579. }
  580. return false
  581. }
  582. func (x *SocketConfig) GetCustomSockopt() []*CustomSockopt {
  583. if x != nil {
  584. return x.CustomSockopt
  585. }
  586. return nil
  587. }
  588. func (x *SocketConfig) GetAddressPortStrategy() AddressPortStrategy {
  589. if x != nil {
  590. return x.AddressPortStrategy
  591. }
  592. return AddressPortStrategy_None
  593. }
  594. func (x *SocketConfig) GetDialTimeout() int32 {
  595. if x != nil {
  596. return x.DialTimeout
  597. }
  598. return 0
  599. }
  600. var File_transport_internet_config_proto protoreflect.FileDescriptor
  601. var file_transport_internet_config_proto_rawDesc = []byte{
  602. 0x0a, 0x1f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  603. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  604. 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72,
  605. 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d,
  606. 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f,
  607. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x63,
  608. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
  609. 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x74, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73,
  610. 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72,
  611. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
  612. 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  613. 0x3c, 0x0a, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28,
  614. 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  615. 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73,
  616. 0x61, 0x67, 0x65, 0x52, 0x08, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x9b, 0x03,
  617. 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x35,
  618. 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32,
  619. 0x1b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65,
  620. 0x74, 0x2e, 0x49, 0x50, 0x4f, 0x72, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x07, 0x61, 0x64,
  621. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x09, 0x20,
  622. 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 0x6f,
  623. 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  624. 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x57,
  625. 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74,
  626. 0x69, 0x6e, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x78, 0x72, 0x61,
  627. 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65,
  628. 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f,
  629. 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x53,
  630. 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x63, 0x75, 0x72,
  631. 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
  632. 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4d, 0x0a, 0x11,
  633. 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,
  634. 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
  635. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 0x70,
  636. 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x10, 0x73, 0x65, 0x63, 0x75, 0x72,
  637. 0x69, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x4e, 0x0a, 0x0f, 0x73,
  638. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06,
  639. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  640. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x53,
  641. 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0e, 0x73, 0x6f, 0x63,
  642. 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x22, 0x51, 0x0a, 0x0b, 0x50,
  643. 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61,
  644. 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x30, 0x0a, 0x13,
  645. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72,
  646. 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x74, 0x72, 0x61, 0x6e, 0x73,
  647. 0x70, 0x6f, 0x72, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x61,
  648. 0x0a, 0x0d, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f, 0x70, 0x74, 0x12,
  649. 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  650. 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01,
  651. 0x28, 0x09, 0x52, 0x03, 0x6f, 0x70, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  652. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a,
  653. 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
  654. 0x65, 0x22, 0xa0, 0x08, 0x0a, 0x0c, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66,
  655. 0x69, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
  656. 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x66, 0x6f, 0x18, 0x02, 0x20,
  657. 0x01, 0x28, 0x05, 0x52, 0x03, 0x74, 0x66, 0x6f, 0x12, 0x48, 0x0a, 0x06, 0x74, 0x70, 0x72, 0x6f,
  658. 0x78, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  659. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  660. 0x65, 0x74, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  661. 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x06, 0x74, 0x70, 0x72, 0x6f,
  662. 0x78, 0x79, 0x12, 0x41, 0x0a, 0x1d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x5f, 0x6f, 0x72,
  663. 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72,
  664. 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1a, 0x72, 0x65, 0x63, 0x65, 0x69,
  665. 0x76, 0x65, 0x4f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61, 0x6c, 0x44, 0x65, 0x73, 0x74, 0x41, 0x64,
  666. 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x64, 0x5f, 0x61, 0x64,
  667. 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x62, 0x69, 0x6e,
  668. 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x62, 0x69, 0x6e, 0x64,
  669. 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x62, 0x69, 0x6e,
  670. 0x64, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x32, 0x0a, 0x15, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f,
  671. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x07,
  672. 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x78,
  673. 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x50, 0x0a, 0x0f, 0x64, 0x6f, 0x6d,
  674. 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x08, 0x20, 0x01,
  675. 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  676. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x44, 0x6f, 0x6d,
  677. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d,
  678. 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x64,
  679. 0x69, 0x61, 0x6c, 0x65, 0x72, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28,
  680. 0x09, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x35,
  681. 0x0a, 0x17, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65,
  682. 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52,
  683. 0x14, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74,
  684. 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x2d, 0x0a, 0x13, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65,
  685. 0x70, 0x5f, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x64, 0x6c, 0x65, 0x18, 0x0b, 0x20, 0x01,
  686. 0x28, 0x05, 0x52, 0x10, 0x74, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x41, 0x6c, 0x69, 0x76, 0x65,
  687. 0x49, 0x64, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x74, 0x63, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x67,
  688. 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x63,
  689. 0x70, 0x43, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x69,
  690. 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
  691. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x36, 0x6f,
  692. 0x6e, 0x6c, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x76, 0x36, 0x6f, 0x6e, 0x6c,
  693. 0x79, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x63, 0x70, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x5f,
  694. 0x63, 0x6c, 0x61, 0x6d, 0x70, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74, 0x63, 0x70,
  695. 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x43, 0x6c, 0x61, 0x6d, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x74,
  696. 0x63, 0x70, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18,
  697. 0x10, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0e, 0x74, 0x63, 0x70, 0x55, 0x73, 0x65, 0x72, 0x54, 0x69,
  698. 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x1e, 0x0a, 0x0b, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x61, 0x78,
  699. 0x5f, 0x73, 0x65, 0x67, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x74, 0x63, 0x70, 0x4d,
  700. 0x61, 0x78, 0x53, 0x65, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x65, 0x6e, 0x65, 0x74, 0x72, 0x61,
  701. 0x74, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x70, 0x65, 0x6e, 0x65, 0x74, 0x72,
  702. 0x61, 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x70, 0x74, 0x63, 0x70,
  703. 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x63, 0x70, 0x4d, 0x70, 0x74, 0x63, 0x70,
  704. 0x12, 0x4c, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f, 0x70,
  705. 0x74, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74,
  706. 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65,
  707. 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f, 0x70, 0x74, 0x52,
  708. 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x6f, 0x63, 0x6b, 0x6f, 0x70, 0x74, 0x12, 0x60,
  709. 0x0a, 0x15, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x73,
  710. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e,
  711. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69,
  712. 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50,
  713. 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x52, 0x13, 0x61, 0x64, 0x64,
  714. 0x72, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x72, 0x74, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  715. 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  716. 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x64, 0x69, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65,
  717. 0x6f, 0x75, 0x74, 0x22, 0x2f, 0x0a, 0x0a, 0x54, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x4d, 0x6f, 0x64,
  718. 0x65, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x66, 0x66, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x50,
  719. 0x72, 0x6f, 0x78, 0x79, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x65, 0x64, 0x69, 0x72, 0x65,
  720. 0x63, 0x74, 0x10, 0x02, 0x2a, 0xa9, 0x01, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53,
  721. 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x53, 0x5f, 0x49, 0x53,
  722. 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0b,
  723. 0x0a, 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55,
  724. 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x53, 0x45, 0x5f,
  725. 0x49, 0x50, 0x34, 0x36, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50,
  726. 0x36, 0x34, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50,
  727. 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10,
  728. 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x08,
  729. 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x36, 0x10, 0x09,
  730. 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x34, 0x10, 0x0a,
  731. 0x2a, 0x97, 0x01, 0x0a, 0x13, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x50, 0x6f, 0x72, 0x74,
  732. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65,
  733. 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x72, 0x76, 0x50, 0x6f, 0x72, 0x74, 0x4f, 0x6e, 0x6c,
  734. 0x79, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x72, 0x76, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73,
  735. 0x73, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x02, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x72, 0x76, 0x50, 0x6f,
  736. 0x72, 0x74, 0x41, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0x03, 0x12, 0x0f,
  737. 0x0a, 0x0b, 0x54, 0x78, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x4f, 0x6e, 0x6c, 0x79, 0x10, 0x04, 0x12,
  738. 0x12, 0x0a, 0x0e, 0x54, 0x78, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x4f, 0x6e, 0x6c,
  739. 0x79, 0x10, 0x05, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x78, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x41, 0x6e,
  740. 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x10, 0x06, 0x42, 0x67, 0x0a, 0x1b, 0x63, 0x6f,
  741. 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  742. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74,
  743. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
  744. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  745. 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0xaa, 0x02, 0x17, 0x58, 0x72, 0x61, 0x79,
  746. 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72,
  747. 0x6e, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  748. }
  749. var (
  750. file_transport_internet_config_proto_rawDescOnce sync.Once
  751. file_transport_internet_config_proto_rawDescData = file_transport_internet_config_proto_rawDesc
  752. )
  753. func file_transport_internet_config_proto_rawDescGZIP() []byte {
  754. file_transport_internet_config_proto_rawDescOnce.Do(func() {
  755. file_transport_internet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_config_proto_rawDescData)
  756. })
  757. return file_transport_internet_config_proto_rawDescData
  758. }
  759. var file_transport_internet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
  760. var file_transport_internet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
  761. var file_transport_internet_config_proto_goTypes = []any{
  762. (DomainStrategy)(0), // 0: xray.transport.internet.DomainStrategy
  763. (AddressPortStrategy)(0), // 1: xray.transport.internet.AddressPortStrategy
  764. (SocketConfig_TProxyMode)(0), // 2: xray.transport.internet.SocketConfig.TProxyMode
  765. (*TransportConfig)(nil), // 3: xray.transport.internet.TransportConfig
  766. (*StreamConfig)(nil), // 4: xray.transport.internet.StreamConfig
  767. (*ProxyConfig)(nil), // 5: xray.transport.internet.ProxyConfig
  768. (*CustomSockopt)(nil), // 6: xray.transport.internet.CustomSockopt
  769. (*SocketConfig)(nil), // 7: xray.transport.internet.SocketConfig
  770. (*serial.TypedMessage)(nil), // 8: xray.common.serial.TypedMessage
  771. (*net.IPOrDomain)(nil), // 9: xray.common.net.IPOrDomain
  772. }
  773. var file_transport_internet_config_proto_depIdxs = []int32{
  774. 8, // 0: xray.transport.internet.TransportConfig.settings:type_name -> xray.common.serial.TypedMessage
  775. 9, // 1: xray.transport.internet.StreamConfig.address:type_name -> xray.common.net.IPOrDomain
  776. 3, // 2: xray.transport.internet.StreamConfig.transport_settings:type_name -> xray.transport.internet.TransportConfig
  777. 8, // 3: xray.transport.internet.StreamConfig.security_settings:type_name -> xray.common.serial.TypedMessage
  778. 7, // 4: xray.transport.internet.StreamConfig.socket_settings:type_name -> xray.transport.internet.SocketConfig
  779. 2, // 5: xray.transport.internet.SocketConfig.tproxy:type_name -> xray.transport.internet.SocketConfig.TProxyMode
  780. 0, // 6: xray.transport.internet.SocketConfig.domain_strategy:type_name -> xray.transport.internet.DomainStrategy
  781. 6, // 7: xray.transport.internet.SocketConfig.customSockopt:type_name -> xray.transport.internet.CustomSockopt
  782. 1, // 8: xray.transport.internet.SocketConfig.address_port_strategy:type_name -> xray.transport.internet.AddressPortStrategy
  783. 9, // [9:9] is the sub-list for method output_type
  784. 9, // [9:9] is the sub-list for method input_type
  785. 9, // [9:9] is the sub-list for extension type_name
  786. 9, // [9:9] is the sub-list for extension extendee
  787. 0, // [0:9] is the sub-list for field type_name
  788. }
  789. func init() { file_transport_internet_config_proto_init() }
  790. func file_transport_internet_config_proto_init() {
  791. if File_transport_internet_config_proto != nil {
  792. return
  793. }
  794. type x struct{}
  795. out := protoimpl.TypeBuilder{
  796. File: protoimpl.DescBuilder{
  797. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  798. RawDescriptor: file_transport_internet_config_proto_rawDesc,
  799. NumEnums: 3,
  800. NumMessages: 5,
  801. NumExtensions: 0,
  802. NumServices: 0,
  803. },
  804. GoTypes: file_transport_internet_config_proto_goTypes,
  805. DependencyIndexes: file_transport_internet_config_proto_depIdxs,
  806. EnumInfos: file_transport_internet_config_proto_enumTypes,
  807. MessageInfos: file_transport_internet_config_proto_msgTypes,
  808. }.Build()
  809. File_transport_internet_config_proto = out.File
  810. file_transport_internet_config_proto_rawDesc = nil
  811. file_transport_internet_config_proto_goTypes = nil
  812. file_transport_internet_config_proto_depIdxs = nil
  813. }