|
|
@@ -27,7 +27,8 @@ const (
|
|
|
// of the legacy proto package is being used.
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
-// Config is the master config of V2Ray. V2Ray takes this config as input and functions accordingly.
|
|
|
+// Config is the master config of V2Ray. V2Ray takes this config as input and
|
|
|
+// functions accordingly.
|
|
|
type Config struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
@@ -35,18 +36,22 @@ type Config struct {
|
|
|
|
|
|
// Inbound handler configurations. Must have at least one item.
|
|
|
Inbound []*InboundHandlerConfig `protobuf:"bytes,1,rep,name=inbound,proto3" json:"inbound,omitempty"`
|
|
|
- // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
|
|
|
+ // Outbound handler configurations. Must have at least one item. The first
|
|
|
+ // item is used as default for routing.
|
|
|
Outbound []*OutboundHandlerConfig `protobuf:"bytes,2,rep,name=outbound,proto3" json:"outbound,omitempty"`
|
|
|
- // 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.
|
|
|
+ // 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.
|
|
|
App []*serial.TypedMessage `protobuf:"bytes,4,rep,name=app,proto3" json:"app,omitempty"`
|
|
|
// Transport settings.
|
|
|
- // Deprecated. Each inbound and outbound should choose their own transport config.
|
|
|
- // Date to remove: 2020-01-13
|
|
|
+ // Deprecated. Each inbound and outbound should choose their own transport
|
|
|
+ // config. Date to remove: 2020-01-13
|
|
|
//
|
|
|
// Deprecated: Do not use.
|
|
|
Transport *transport.Config `protobuf:"bytes,5,opt,name=transport,proto3" json:"transport,omitempty"`
|
|
|
- // Configuration for extensions. The config may not work if corresponding extension is not loaded into V2Ray.
|
|
|
- // V2Ray will ignore such config during initialization.
|
|
|
+ // Configuration for extensions. The config may not work if corresponding
|
|
|
+ // extension is not loaded into V2Ray. V2Ray will ignore such config during
|
|
|
+ // initialization.
|
|
|
Extension []*serial.TypedMessage `protobuf:"bytes,6,rep,name=extension,proto3" json:"extension,omitempty"`
|
|
|
}
|
|
|
|
|
|
@@ -124,7 +129,8 @@ type InboundHandlerConfig struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- // Tag of the inbound handler. The tag must be unique among all inbound handlers
|
|
|
+ // Tag of the inbound handler. The tag must be unique among all inbound
|
|
|
+ // handlers
|
|
|
Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
|
|
|
// Settings for how this inbound proxy is handled.
|
|
|
ReceiverSettings *serial.TypedMessage `protobuf:"bytes,2,opt,name=receiver_settings,json=receiverSettings,proto3" json:"receiver_settings,omitempty"`
|