You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/config.proto

56 lines
2.2 KiB

8 years ago
syntax = "proto3";
package v2ray.core;
option csharp_namespace = "V2Ray.Core";
8 years ago
option go_package = "core";
option java_package = "com.v2ray.core";
option java_multiple_files = true;
8 years ago
import "v2ray.com/core/common/serial/typed_message.proto";
import "v2ray.com/core/transport/config.proto";
8 years ago
7 years ago
// Config is the master config of V2Ray. V2Ray takes this config as input and functions accordingly.
message Config {
8 years ago
// Inbound handler configurations. Must have at least one item.
repeated InboundHandlerConfig inbound = 1;
8 years ago
// Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
repeated OutboundHandlerConfig outbound = 2;
reserved 3;
8 years ago
7 years ago
// App is for configurations of all features in V2Ray. A feature must implement the Feature interface, and its config type must be registered through common.RegisterConfig.
repeated v2ray.core.common.serial.TypedMessage app = 4;
8 years ago
// Transport settings.
v2ray.core.transport.Config transport = 5;
// Configuration for extensions. The config may not work if corresponding extension is not loaded into V2Ray.
// V2Ray will ignore such config during initialization.
repeated v2ray.core.common.serial.TypedMessage extension = 6;
}
7 years ago
// InboundHandlerConfig is the configuration for inbound handler.
message InboundHandlerConfig {
7 years ago
// Tag of the inbound handler. The tag must be unique among all inbound handlers
string tag = 1;
7 years ago
// Settings for how this inbound proxy is handled.
v2ray.core.common.serial.TypedMessage receiver_settings = 2;
// Settings for inbound proxy. Must be one of the inbound proxies.
v2ray.core.common.serial.TypedMessage proxy_settings = 3;
}
7 years ago
// OutboundHandlerConfig is the configuration for outbound handler.
message OutboundHandlerConfig {
// Tag of this outbound handler.
string tag = 1;
7 years ago
// Settings for how to dial connection for this outbound handler.
v2ray.core.common.serial.TypedMessage sender_settings = 2;
// Settings for this outbound proxy. Must be one of the outbound proxies.
v2ray.core.common.serial.TypedMessage proxy_settings = 3;
// If not zero, this outbound will be expired in seconds. Not used for now.
int64 expire = 4;
// Comment of this outbound handler. Not used for now.
string comment = 5;
}