mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-06-06 02:59:27 -04:00
massive refactoring for interoperability
This commit is contained in:
27
config.proto
27
config.proto
@@ -6,7 +6,6 @@ option go_package = "core";
|
||||
option java_package = "com.v2ray.core";
|
||||
option java_multiple_files = true;
|
||||
|
||||
import "v2ray.com/core/app/proxyman/config.proto";
|
||||
import "v2ray.com/core/common/serial/typed_message.proto";
|
||||
import "v2ray.com/core/transport/config.proto";
|
||||
|
||||
@@ -19,10 +18,10 @@ enum ConfigFormat {
|
||||
// Master config of V2Ray. V2Ray takes this config as input and functions accordingly.
|
||||
message Config {
|
||||
// Inbound handler configurations. Must have at least one item.
|
||||
repeated v2ray.core.app.proxyman.InboundHandlerConfig inbound = 1;
|
||||
repeated InboundHandlerConfig inbound = 1;
|
||||
|
||||
// Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
|
||||
repeated v2ray.core.app.proxyman.OutboundHandlerConfig outbound = 2;
|
||||
repeated OutboundHandlerConfig outbound = 2;
|
||||
|
||||
reserved 3;
|
||||
|
||||
@@ -36,3 +35,25 @@ message Config {
|
||||
// V2Ray will ignore such config during initialization.
|
||||
repeated v2ray.core.common.serial.TypedMessage extension = 6;
|
||||
}
|
||||
|
||||
message InboundHandlerConfig {
|
||||
// Tag of the inbound handler.
|
||||
string tag = 1;
|
||||
// Settings for how this inbound proxy is handled. Must be ReceiverConfig above.
|
||||
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;
|
||||
}
|
||||
|
||||
message OutboundHandlerConfig {
|
||||
// Tag of this outbound handler.
|
||||
string tag = 1;
|
||||
// Settings for how to dial connection for this outbound handler. Must be SenderConfig above.
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user