config.pb.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  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: proxy/freedom/config.proto
  6. package freedom
  7. import (
  8. protocol "github.com/xtls/xray-core/common/protocol"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Config_DomainStrategy int32
  21. const (
  22. Config_AS_IS Config_DomainStrategy = 0
  23. Config_USE_IP Config_DomainStrategy = 1
  24. Config_USE_IP4 Config_DomainStrategy = 2
  25. Config_USE_IP6 Config_DomainStrategy = 3
  26. Config_USE_IP46 Config_DomainStrategy = 4
  27. Config_USE_IP64 Config_DomainStrategy = 5
  28. Config_FORCE_IP Config_DomainStrategy = 6
  29. Config_FORCE_IP4 Config_DomainStrategy = 7
  30. Config_FORCE_IP6 Config_DomainStrategy = 8
  31. Config_FORCE_IP46 Config_DomainStrategy = 9
  32. Config_FORCE_IP64 Config_DomainStrategy = 10
  33. )
  34. // Enum value maps for Config_DomainStrategy.
  35. var (
  36. Config_DomainStrategy_name = map[int32]string{
  37. 0: "AS_IS",
  38. 1: "USE_IP",
  39. 2: "USE_IP4",
  40. 3: "USE_IP6",
  41. 4: "USE_IP46",
  42. 5: "USE_IP64",
  43. 6: "FORCE_IP",
  44. 7: "FORCE_IP4",
  45. 8: "FORCE_IP6",
  46. 9: "FORCE_IP46",
  47. 10: "FORCE_IP64",
  48. }
  49. Config_DomainStrategy_value = map[string]int32{
  50. "AS_IS": 0,
  51. "USE_IP": 1,
  52. "USE_IP4": 2,
  53. "USE_IP6": 3,
  54. "USE_IP46": 4,
  55. "USE_IP64": 5,
  56. "FORCE_IP": 6,
  57. "FORCE_IP4": 7,
  58. "FORCE_IP6": 8,
  59. "FORCE_IP46": 9,
  60. "FORCE_IP64": 10,
  61. }
  62. )
  63. func (x Config_DomainStrategy) Enum() *Config_DomainStrategy {
  64. p := new(Config_DomainStrategy)
  65. *p = x
  66. return p
  67. }
  68. func (x Config_DomainStrategy) String() string {
  69. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  70. }
  71. func (Config_DomainStrategy) Descriptor() protoreflect.EnumDescriptor {
  72. return file_proxy_freedom_config_proto_enumTypes[0].Descriptor()
  73. }
  74. func (Config_DomainStrategy) Type() protoreflect.EnumType {
  75. return &file_proxy_freedom_config_proto_enumTypes[0]
  76. }
  77. func (x Config_DomainStrategy) Number() protoreflect.EnumNumber {
  78. return protoreflect.EnumNumber(x)
  79. }
  80. // Deprecated: Use Config_DomainStrategy.Descriptor instead.
  81. func (Config_DomainStrategy) EnumDescriptor() ([]byte, []int) {
  82. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{3, 0}
  83. }
  84. type DestinationOverride struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. Server *protocol.ServerEndpoint `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
  89. }
  90. func (x *DestinationOverride) Reset() {
  91. *x = DestinationOverride{}
  92. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  93. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  94. ms.StoreMessageInfo(mi)
  95. }
  96. func (x *DestinationOverride) String() string {
  97. return protoimpl.X.MessageStringOf(x)
  98. }
  99. func (*DestinationOverride) ProtoMessage() {}
  100. func (x *DestinationOverride) ProtoReflect() protoreflect.Message {
  101. mi := &file_proxy_freedom_config_proto_msgTypes[0]
  102. if x != nil {
  103. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  104. if ms.LoadMessageInfo() == nil {
  105. ms.StoreMessageInfo(mi)
  106. }
  107. return ms
  108. }
  109. return mi.MessageOf(x)
  110. }
  111. // Deprecated: Use DestinationOverride.ProtoReflect.Descriptor instead.
  112. func (*DestinationOverride) Descriptor() ([]byte, []int) {
  113. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{0}
  114. }
  115. func (x *DestinationOverride) GetServer() *protocol.ServerEndpoint {
  116. if x != nil {
  117. return x.Server
  118. }
  119. return nil
  120. }
  121. type Fragment struct {
  122. state protoimpl.MessageState
  123. sizeCache protoimpl.SizeCache
  124. unknownFields protoimpl.UnknownFields
  125. PacketsFrom uint64 `protobuf:"varint,1,opt,name=packets_from,json=packetsFrom,proto3" json:"packets_from,omitempty"`
  126. PacketsTo uint64 `protobuf:"varint,2,opt,name=packets_to,json=packetsTo,proto3" json:"packets_to,omitempty"`
  127. LengthMin uint64 `protobuf:"varint,3,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"`
  128. LengthMax uint64 `protobuf:"varint,4,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"`
  129. IntervalMin uint64 `protobuf:"varint,5,opt,name=interval_min,json=intervalMin,proto3" json:"interval_min,omitempty"`
  130. IntervalMax uint64 `protobuf:"varint,6,opt,name=interval_max,json=intervalMax,proto3" json:"interval_max,omitempty"`
  131. }
  132. func (x *Fragment) Reset() {
  133. *x = Fragment{}
  134. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. func (x *Fragment) String() string {
  139. return protoimpl.X.MessageStringOf(x)
  140. }
  141. func (*Fragment) ProtoMessage() {}
  142. func (x *Fragment) ProtoReflect() protoreflect.Message {
  143. mi := &file_proxy_freedom_config_proto_msgTypes[1]
  144. if x != nil {
  145. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  146. if ms.LoadMessageInfo() == nil {
  147. ms.StoreMessageInfo(mi)
  148. }
  149. return ms
  150. }
  151. return mi.MessageOf(x)
  152. }
  153. // Deprecated: Use Fragment.ProtoReflect.Descriptor instead.
  154. func (*Fragment) Descriptor() ([]byte, []int) {
  155. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{1}
  156. }
  157. func (x *Fragment) GetPacketsFrom() uint64 {
  158. if x != nil {
  159. return x.PacketsFrom
  160. }
  161. return 0
  162. }
  163. func (x *Fragment) GetPacketsTo() uint64 {
  164. if x != nil {
  165. return x.PacketsTo
  166. }
  167. return 0
  168. }
  169. func (x *Fragment) GetLengthMin() uint64 {
  170. if x != nil {
  171. return x.LengthMin
  172. }
  173. return 0
  174. }
  175. func (x *Fragment) GetLengthMax() uint64 {
  176. if x != nil {
  177. return x.LengthMax
  178. }
  179. return 0
  180. }
  181. func (x *Fragment) GetIntervalMin() uint64 {
  182. if x != nil {
  183. return x.IntervalMin
  184. }
  185. return 0
  186. }
  187. func (x *Fragment) GetIntervalMax() uint64 {
  188. if x != nil {
  189. return x.IntervalMax
  190. }
  191. return 0
  192. }
  193. type Noise struct {
  194. state protoimpl.MessageState
  195. sizeCache protoimpl.SizeCache
  196. unknownFields protoimpl.UnknownFields
  197. LengthMin uint64 `protobuf:"varint,1,opt,name=length_min,json=lengthMin,proto3" json:"length_min,omitempty"`
  198. LengthMax uint64 `protobuf:"varint,2,opt,name=length_max,json=lengthMax,proto3" json:"length_max,omitempty"`
  199. DelayMin uint64 `protobuf:"varint,3,opt,name=delay_min,json=delayMin,proto3" json:"delay_min,omitempty"`
  200. DelayMax uint64 `protobuf:"varint,4,opt,name=delay_max,json=delayMax,proto3" json:"delay_max,omitempty"`
  201. Packet []byte `protobuf:"bytes,5,opt,name=packet,proto3" json:"packet,omitempty"`
  202. }
  203. func (x *Noise) Reset() {
  204. *x = Noise{}
  205. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  206. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  207. ms.StoreMessageInfo(mi)
  208. }
  209. func (x *Noise) String() string {
  210. return protoimpl.X.MessageStringOf(x)
  211. }
  212. func (*Noise) ProtoMessage() {}
  213. func (x *Noise) ProtoReflect() protoreflect.Message {
  214. mi := &file_proxy_freedom_config_proto_msgTypes[2]
  215. if x != nil {
  216. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  217. if ms.LoadMessageInfo() == nil {
  218. ms.StoreMessageInfo(mi)
  219. }
  220. return ms
  221. }
  222. return mi.MessageOf(x)
  223. }
  224. // Deprecated: Use Noise.ProtoReflect.Descriptor instead.
  225. func (*Noise) Descriptor() ([]byte, []int) {
  226. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{2}
  227. }
  228. func (x *Noise) GetLengthMin() uint64 {
  229. if x != nil {
  230. return x.LengthMin
  231. }
  232. return 0
  233. }
  234. func (x *Noise) GetLengthMax() uint64 {
  235. if x != nil {
  236. return x.LengthMax
  237. }
  238. return 0
  239. }
  240. func (x *Noise) GetDelayMin() uint64 {
  241. if x != nil {
  242. return x.DelayMin
  243. }
  244. return 0
  245. }
  246. func (x *Noise) GetDelayMax() uint64 {
  247. if x != nil {
  248. return x.DelayMax
  249. }
  250. return 0
  251. }
  252. func (x *Noise) GetPacket() []byte {
  253. if x != nil {
  254. return x.Packet
  255. }
  256. return nil
  257. }
  258. type Config struct {
  259. state protoimpl.MessageState
  260. sizeCache protoimpl.SizeCache
  261. unknownFields protoimpl.UnknownFields
  262. DomainStrategy Config_DomainStrategy `protobuf:"varint,1,opt,name=domain_strategy,json=domainStrategy,proto3,enum=xray.proxy.freedom.Config_DomainStrategy" json:"domain_strategy,omitempty"`
  263. DestinationOverride *DestinationOverride `protobuf:"bytes,3,opt,name=destination_override,json=destinationOverride,proto3" json:"destination_override,omitempty"`
  264. UserLevel uint32 `protobuf:"varint,4,opt,name=user_level,json=userLevel,proto3" json:"user_level,omitempty"`
  265. Fragment *Fragment `protobuf:"bytes,5,opt,name=fragment,proto3" json:"fragment,omitempty"`
  266. ProxyProtocol uint32 `protobuf:"varint,6,opt,name=proxy_protocol,json=proxyProtocol,proto3" json:"proxy_protocol,omitempty"`
  267. Noises []*Noise `protobuf:"bytes,7,rep,name=noises,proto3" json:"noises,omitempty"`
  268. }
  269. func (x *Config) Reset() {
  270. *x = Config{}
  271. mi := &file_proxy_freedom_config_proto_msgTypes[3]
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. ms.StoreMessageInfo(mi)
  274. }
  275. func (x *Config) String() string {
  276. return protoimpl.X.MessageStringOf(x)
  277. }
  278. func (*Config) ProtoMessage() {}
  279. func (x *Config) ProtoReflect() protoreflect.Message {
  280. mi := &file_proxy_freedom_config_proto_msgTypes[3]
  281. if x != nil {
  282. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  283. if ms.LoadMessageInfo() == nil {
  284. ms.StoreMessageInfo(mi)
  285. }
  286. return ms
  287. }
  288. return mi.MessageOf(x)
  289. }
  290. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  291. func (*Config) Descriptor() ([]byte, []int) {
  292. return file_proxy_freedom_config_proto_rawDescGZIP(), []int{3}
  293. }
  294. func (x *Config) GetDomainStrategy() Config_DomainStrategy {
  295. if x != nil {
  296. return x.DomainStrategy
  297. }
  298. return Config_AS_IS
  299. }
  300. func (x *Config) GetDestinationOverride() *DestinationOverride {
  301. if x != nil {
  302. return x.DestinationOverride
  303. }
  304. return nil
  305. }
  306. func (x *Config) GetUserLevel() uint32 {
  307. if x != nil {
  308. return x.UserLevel
  309. }
  310. return 0
  311. }
  312. func (x *Config) GetFragment() *Fragment {
  313. if x != nil {
  314. return x.Fragment
  315. }
  316. return nil
  317. }
  318. func (x *Config) GetProxyProtocol() uint32 {
  319. if x != nil {
  320. return x.ProxyProtocol
  321. }
  322. return 0
  323. }
  324. func (x *Config) GetNoises() []*Noise {
  325. if x != nil {
  326. return x.Noises
  327. }
  328. return nil
  329. }
  330. var File_proxy_freedom_config_proto protoreflect.FileDescriptor
  331. var file_proxy_freedom_config_proto_rawDesc = []byte{
  332. 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2f,
  333. 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x78, 0x72,
  334. 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d,
  335. 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  336. 0x6c, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x73, 0x70, 0x65, 0x63, 0x2e, 0x70, 0x72,
  337. 0x6f, 0x74, 0x6f, 0x22, 0x53, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69,
  338. 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x73, 0x65,
  339. 0x72, 0x76, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61,
  340. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  341. 0x6c, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
  342. 0x52, 0x06, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x22, 0xd0, 0x01, 0x0a, 0x08, 0x46, 0x72, 0x61,
  343. 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x73,
  344. 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x70, 0x61, 0x63,
  345. 0x6b, 0x65, 0x74, 0x73, 0x46, 0x72, 0x6f, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x63, 0x6b,
  346. 0x65, 0x74, 0x73, 0x5f, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x70, 0x61,
  347. 0x63, 0x6b, 0x65, 0x74, 0x73, 0x54, 0x6f, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74,
  348. 0x68, 0x5f, 0x6d, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e,
  349. 0x67, 0x74, 0x68, 0x4d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
  350. 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e, 0x67,
  351. 0x74, 0x68, 0x4d, 0x61, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61,
  352. 0x6c, 0x5f, 0x6d, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x69, 0x6e, 0x74,
  353. 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x69, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x65,
  354. 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b,
  355. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x61, 0x78, 0x22, 0x97, 0x01, 0x0a, 0x05,
  356. 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f,
  357. 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e, 0x67, 0x74,
  358. 0x68, 0x4d, 0x69, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x5f, 0x6d,
  359. 0x61, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68,
  360. 0x4d, 0x61, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x69, 0x6e,
  361. 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x4d, 0x69, 0x6e,
  362. 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x04, 0x20,
  363. 0x01, 0x28, 0x04, 0x52, 0x08, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x4d, 0x61, 0x78, 0x12, 0x16, 0x0a,
  364. 0x06, 0x70, 0x61, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70,
  365. 0x61, 0x63, 0x6b, 0x65, 0x74, 0x22, 0x97, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  366. 0x12, 0x52, 0x0a, 0x0f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x73, 0x74, 0x72, 0x61, 0x74,
  367. 0x65, 0x67, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79,
  368. 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x43,
  369. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61,
  370. 0x74, 0x65, 0x67, 0x79, 0x52, 0x0e, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74, 0x72, 0x61,
  371. 0x74, 0x65, 0x67, 0x79, 0x12, 0x5a, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74,
  372. 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01,
  373. 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  374. 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74,
  375. 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x52, 0x13, 0x64, 0x65, 0x73,
  376. 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65,
  377. 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x04,
  378. 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x73, 0x65, 0x72, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12,
  379. 0x38, 0x0a, 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28,
  380. 0x0b, 0x32, 0x1c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66,
  381. 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x46, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x52,
  382. 0x08, 0x66, 0x72, 0x61, 0x67, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x70, 0x72, 0x6f,
  383. 0x78, 0x79, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28,
  384. 0x0d, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
  385. 0x12, 0x31, 0x0a, 0x06, 0x6e, 0x6f, 0x69, 0x73, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b,
  386. 0x32, 0x19, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x66, 0x72,
  387. 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x2e, 0x4e, 0x6f, 0x69, 0x73, 0x65, 0x52, 0x06, 0x6e, 0x6f, 0x69,
  388. 0x73, 0x65, 0x73, 0x22, 0xa9, 0x01, 0x0a, 0x0e, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x53, 0x74,
  389. 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x53, 0x5f, 0x49, 0x53, 0x10,
  390. 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x01, 0x12, 0x0b, 0x0a,
  391. 0x07, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x53,
  392. 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x53, 0x45, 0x5f, 0x49,
  393. 0x50, 0x34, 0x36, 0x10, 0x04, 0x12, 0x0c, 0x0a, 0x08, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x50, 0x36,
  394. 0x34, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x10,
  395. 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x10, 0x07,
  396. 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x10, 0x08, 0x12,
  397. 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x34, 0x36, 0x10, 0x09, 0x12,
  398. 0x0e, 0x0a, 0x0a, 0x46, 0x4f, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x36, 0x34, 0x10, 0x0a, 0x42,
  399. 0x58, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78,
  400. 0x79, 0x2e, 0x66, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x50, 0x01, 0x5a, 0x27, 0x67, 0x69, 0x74,
  401. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61,
  402. 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x66, 0x72, 0x65,
  403. 0x65, 0x64, 0x6f, 0x6d, 0xaa, 0x02, 0x12, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78,
  404. 0x79, 0x2e, 0x46, 0x72, 0x65, 0x65, 0x64, 0x6f, 0x6d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  405. 0x33,
  406. }
  407. var (
  408. file_proxy_freedom_config_proto_rawDescOnce sync.Once
  409. file_proxy_freedom_config_proto_rawDescData = file_proxy_freedom_config_proto_rawDesc
  410. )
  411. func file_proxy_freedom_config_proto_rawDescGZIP() []byte {
  412. file_proxy_freedom_config_proto_rawDescOnce.Do(func() {
  413. file_proxy_freedom_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_freedom_config_proto_rawDescData)
  414. })
  415. return file_proxy_freedom_config_proto_rawDescData
  416. }
  417. var file_proxy_freedom_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  418. var file_proxy_freedom_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  419. var file_proxy_freedom_config_proto_goTypes = []any{
  420. (Config_DomainStrategy)(0), // 0: xray.proxy.freedom.Config.DomainStrategy
  421. (*DestinationOverride)(nil), // 1: xray.proxy.freedom.DestinationOverride
  422. (*Fragment)(nil), // 2: xray.proxy.freedom.Fragment
  423. (*Noise)(nil), // 3: xray.proxy.freedom.Noise
  424. (*Config)(nil), // 4: xray.proxy.freedom.Config
  425. (*protocol.ServerEndpoint)(nil), // 5: xray.common.protocol.ServerEndpoint
  426. }
  427. var file_proxy_freedom_config_proto_depIdxs = []int32{
  428. 5, // 0: xray.proxy.freedom.DestinationOverride.server:type_name -> xray.common.protocol.ServerEndpoint
  429. 0, // 1: xray.proxy.freedom.Config.domain_strategy:type_name -> xray.proxy.freedom.Config.DomainStrategy
  430. 1, // 2: xray.proxy.freedom.Config.destination_override:type_name -> xray.proxy.freedom.DestinationOverride
  431. 2, // 3: xray.proxy.freedom.Config.fragment:type_name -> xray.proxy.freedom.Fragment
  432. 3, // 4: xray.proxy.freedom.Config.noises:type_name -> xray.proxy.freedom.Noise
  433. 5, // [5:5] is the sub-list for method output_type
  434. 5, // [5:5] is the sub-list for method input_type
  435. 5, // [5:5] is the sub-list for extension type_name
  436. 5, // [5:5] is the sub-list for extension extendee
  437. 0, // [0:5] is the sub-list for field type_name
  438. }
  439. func init() { file_proxy_freedom_config_proto_init() }
  440. func file_proxy_freedom_config_proto_init() {
  441. if File_proxy_freedom_config_proto != nil {
  442. return
  443. }
  444. type x struct{}
  445. out := protoimpl.TypeBuilder{
  446. File: protoimpl.DescBuilder{
  447. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  448. RawDescriptor: file_proxy_freedom_config_proto_rawDesc,
  449. NumEnums: 1,
  450. NumMessages: 4,
  451. NumExtensions: 0,
  452. NumServices: 0,
  453. },
  454. GoTypes: file_proxy_freedom_config_proto_goTypes,
  455. DependencyIndexes: file_proxy_freedom_config_proto_depIdxs,
  456. EnumInfos: file_proxy_freedom_config_proto_enumTypes,
  457. MessageInfos: file_proxy_freedom_config_proto_msgTypes,
  458. }.Build()
  459. File_proxy_freedom_config_proto = out.File
  460. file_proxy_freedom_config_proto_rawDesc = nil
  461. file_proxy_freedom_config_proto_goTypes = nil
  462. file_proxy_freedom_config_proto_depIdxs = nil
  463. }