mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-01 01:44:15 +00:00
v1.0.0
This commit is contained in:
parent
47d23e9972
commit
c7f7c08ead
711 changed files with 82154 additions and 2 deletions
51
app/policy/config.proto
Normal file
51
app/policy/config.proto
Normal file
|
@ -0,0 +1,51 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package xray.app.policy;
|
||||
option csharp_namespace = "Xray.App.Policy";
|
||||
option go_package = "github.com/xtls/xray-core/v1/app/policy";
|
||||
option java_package = "com.xray.app.policy";
|
||||
option java_multiple_files = true;
|
||||
|
||||
message Second {
|
||||
uint32 value = 1;
|
||||
}
|
||||
|
||||
message Policy {
|
||||
// Timeout is a message for timeout settings in various stages, in seconds.
|
||||
message Timeout {
|
||||
Second handshake = 1;
|
||||
Second connection_idle = 2;
|
||||
Second uplink_only = 3;
|
||||
Second downlink_only = 4;
|
||||
}
|
||||
|
||||
message Stats {
|
||||
bool user_uplink = 1;
|
||||
bool user_downlink = 2;
|
||||
}
|
||||
|
||||
message Buffer {
|
||||
// Buffer size per connection, in bytes. -1 for unlimited buffer.
|
||||
int32 connection = 1;
|
||||
}
|
||||
|
||||
Timeout timeout = 1;
|
||||
Stats stats = 2;
|
||||
Buffer buffer = 3;
|
||||
}
|
||||
|
||||
message SystemPolicy {
|
||||
message Stats {
|
||||
bool inbound_uplink = 1;
|
||||
bool inbound_downlink = 2;
|
||||
bool outbound_uplink = 3;
|
||||
bool outbound_downlink = 4;
|
||||
}
|
||||
|
||||
Stats stats = 1;
|
||||
}
|
||||
|
||||
message Config {
|
||||
map<uint32, Policy> level = 1;
|
||||
SystemPolicy system = 2;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue