github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/config.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core; 4 option csharp_namespace = "V2Ray.Core"; 5 option go_package = "github.com/v2fly/v2ray-core/v5;core"; 6 option java_package = "com.v2ray.core"; 7 option java_multiple_files = true; 8 9 import "google/protobuf/any.proto"; 10 import "transport/config.proto"; 11 12 // Config is the master config of V2Ray. V2Ray takes this config as input and 13 // functions accordingly. 14 message Config { 15 // Inbound handler configurations. Must have at least one item. 16 repeated InboundHandlerConfig inbound = 1; 17 18 // Outbound handler configurations. Must have at least one item. The first 19 // item is used as default for routing. 20 repeated OutboundHandlerConfig outbound = 2; 21 22 reserved 3; 23 24 // App is for configurations of all features in V2Ray. A feature must 25 // implement the Feature interface, and its config type must be registered 26 // through common.RegisterConfig. 27 repeated google.protobuf.Any app = 4; 28 29 // Transport settings. 30 // Deprecated. Each inbound and outbound should choose their own transport 31 // config. Date to remove: 2020-01-13 32 v2ray.core.transport.Config transport = 5 [deprecated = true]; 33 34 // Configuration for extensions. The config may not work if corresponding 35 // extension is not loaded into V2Ray. V2Ray will ignore such config during 36 // initialization. 37 repeated google.protobuf.Any extension = 6; 38 } 39 40 // InboundHandlerConfig is the configuration for inbound handler. 41 message InboundHandlerConfig { 42 // Tag of the inbound handler. The tag must be unique among all inbound 43 // handlers 44 string tag = 1; 45 // Settings for how this inbound proxy is handled. 46 google.protobuf.Any receiver_settings = 2; 47 // Settings for inbound proxy. Must be one of the inbound proxies. 48 google.protobuf.Any proxy_settings = 3; 49 } 50 51 // OutboundHandlerConfig is the configuration for outbound handler. 52 message OutboundHandlerConfig { 53 // Tag of this outbound handler. 54 string tag = 1; 55 // Settings for how to dial connection for this outbound handler. 56 google.protobuf.Any sender_settings = 2; 57 // Settings for this outbound proxy. Must be one of the outbound proxies. 58 google.protobuf.Any proxy_settings = 3; 59 // If not zero, this outbound will be expired in seconds. Not used for now. 60 int64 expire = 4; 61 // Comment of this outbound handler. Not used for now. 62 string comment = 5; 63 }