github.com/Uhtred009/v2ray-core-1@v4.31.2+incompatible/app/policy/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.app.policy; 4 option csharp_namespace = "V2Ray.Core.App.Policy"; 5 option go_package = "v2ray.com/core/app/policy"; 6 option java_package = "com.v2ray.core.app.policy"; 7 option java_multiple_files = true; 8 9 message Second { 10 uint32 value = 1; 11 } 12 13 message Policy { 14 // Timeout is a message for timeout settings in various stages, in seconds. 15 message Timeout { 16 Second handshake = 1; 17 Second connection_idle = 2; 18 Second uplink_only = 3; 19 Second downlink_only = 4; 20 } 21 22 message Stats { 23 bool user_uplink = 1; 24 bool user_downlink = 2; 25 } 26 27 message Buffer { 28 // Buffer size per connection, in bytes. -1 for unlimited buffer. 29 int32 connection = 1; 30 uint64 rate = 2; 31 } 32 33 Timeout timeout = 1; 34 Stats stats = 2; 35 Buffer buffer = 3; 36 } 37 38 message SystemPolicy { 39 message Stats { 40 bool inbound_uplink = 1; 41 bool inbound_downlink = 2; 42 bool outbound_uplink = 3; 43 bool outbound_downlink = 4; 44 } 45 46 Stats stats = 1; 47 } 48 49 message Config { 50 map<uint32, Policy> level = 1; 51 SystemPolicy system = 2; 52 }