1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/config.proto

39 lines
1.3 KiB
Protocol Buffer
Raw Normal View History

2016-10-12 12:43:55 -04:00
syntax = "proto3";
package v2ray.core;
2016-12-22 18:24:28 -05:00
option csharp_namespace = "V2Ray.Core";
2016-10-12 12:43:55 -04:00
option go_package = "core";
option java_package = "com.v2ray.core";
2017-02-03 17:15:10 -05:00
option java_multiple_files = true;
2016-10-12 12:43:55 -04:00
import "v2ray.com/core/app/proxyman/config.proto";
2016-12-15 05:51:09 -05:00
import "v2ray.com/core/common/serial/typed_message.proto";
2016-10-14 16:21:45 -04:00
import "v2ray.com/core/transport/config.proto";
2016-10-12 12:43:55 -04:00
2016-10-17 18:09:49 -04:00
// Configuration serialization format.
2016-10-14 17:41:41 -04:00
enum ConfigFormat {
Protobuf = 0;
JSON = 1;
}
2017-02-10 10:25:54 -05:00
// Master config of V2Ray. V2Ray Core takes this config as input and functions accordingly.
2016-10-14 16:21:45 -04:00
message Config {
2016-10-17 18:09:49 -04:00
// Inbound handler configurations. Must have at least one item.
repeated v2ray.core.app.proxyman.InboundHandlerConfig inbound = 1;
2016-10-17 18:09:49 -04:00
// 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;
2017-02-01 15:35:40 -05:00
reserved 3;
2016-10-17 18:09:49 -04:00
// App configuration. Must be one in the app directory.
2016-12-15 05:51:09 -05:00
repeated v2ray.core.common.serial.TypedMessage app = 4;
2017-02-10 10:25:54 -05:00
// Transport settings.
2016-10-16 10:04:30 -04:00
v2ray.core.transport.Config transport = 5;
2017-07-24 10:39:32 -04:00
// 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;
}