2020-11-25 13:01:53 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package xray.proxy.vless.encoding;
|
|
|
|
option csharp_namespace = "Xray.Proxy.Vless.Encoding";
|
2020-12-04 03:36:16 +02:00
|
|
|
option go_package = "github.com/xtls/xray-core/proxy/vless/encoding";
|
2020-11-25 13:01:53 +02:00
|
|
|
option java_package = "com.xray.proxy.vless.encoding";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
|
|
|
|
message Addons {
|
|
|
|
string Flow = 1;
|
|
|
|
bytes Seed = 2;
|
2024-04-13 07:25:42 +03:00
|
|
|
SeedMode Mode = 3;
|
|
|
|
string Duration = 4; // "0-8" means apply to number of packets, "1kb-" means start applying once both side exchange 1kb data, counting two-ways
|
|
|
|
PaddingConfig Padding = 5;
|
|
|
|
DelayConfig Delay = 6;
|
2024-04-13 21:55:05 +03:00
|
|
|
SchedulerConfig Scheduler = 7;
|
2024-04-13 07:25:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
enum SeedMode {
|
|
|
|
Unknown = 0;
|
|
|
|
PaddingOnly = 1;
|
|
|
|
PaddingPlusDelay = 2;
|
|
|
|
IndependentScheduler = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message PaddingConfig {
|
|
|
|
uint32 RegularMin = 1;
|
|
|
|
uint32 RegularMax = 2;
|
|
|
|
uint32 LongMin = 3;
|
|
|
|
uint32 LongMax = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DelayConfig {
|
|
|
|
bool IsRandom = 1;
|
|
|
|
uint32 MinMillis = 2;
|
|
|
|
uint32 MaxMillis = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SchedulerConfig {
|
|
|
|
uint32 TimeoutMillis = 1; // original traffic will not be sent right away but when scheduler want to send or pending buffer times out
|
|
|
|
// Other TBD
|
2020-11-25 13:01:53 +02:00
|
|
|
}
|