2017-11-27 16:09:30 -05:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package v2ray.core.app.policy;
|
|
|
|
option csharp_namespace = "V2Ray.Core.App.Policy";
|
|
|
|
option go_package = "policy";
|
|
|
|
option java_package = "com.v2ray.core.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;
|
|
|
|
}
|
|
|
|
|
2018-03-30 17:39:54 -04:00
|
|
|
message Stats {
|
|
|
|
bool enable_per_user = 1;
|
|
|
|
}
|
|
|
|
|
2017-11-27 16:09:30 -05:00
|
|
|
Timeout timeout = 1;
|
2018-03-30 17:39:54 -04:00
|
|
|
Stats stats = 2;
|
2017-11-27 16:09:30 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
message Config {
|
|
|
|
map<uint32, Policy> level = 1;
|
|
|
|
}
|