|
@@ -8,13 +8,13 @@ package command
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
|
+ v4 "github.com/v2fly/v2ray-core/v4"
|
|
|
|
|
+ protocol "github.com/v2fly/v2ray-core/v4/common/protocol"
|
|
|
|
|
+ serial "github.com/v2fly/v2ray-core/v4/common/serial"
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
reflect "reflect"
|
|
reflect "reflect"
|
|
|
sync "sync"
|
|
sync "sync"
|
|
|
- core "v2ray.com/core"
|
|
|
|
|
- protocol "v2ray.com/core/common/protocol"
|
|
|
|
|
- serial "v2ray.com/core/common/serial"
|
|
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
const (
|
|
@@ -127,7 +127,7 @@ type AddInboundRequest struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
- Inbound *core.InboundHandlerConfig `protobuf:"bytes,1,opt,name=inbound,proto3" json:"inbound,omitempty"`
|
|
|
|
|
|
|
+ Inbound *v4.InboundHandlerConfig `protobuf:"bytes,1,opt,name=inbound,proto3" json:"inbound,omitempty"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (x *AddInboundRequest) Reset() {
|
|
func (x *AddInboundRequest) Reset() {
|
|
@@ -162,7 +162,7 @@ func (*AddInboundRequest) Descriptor() ([]byte, []int) {
|
|
|
return file_app_proxyman_command_command_proto_rawDescGZIP(), []int{2}
|
|
return file_app_proxyman_command_command_proto_rawDescGZIP(), []int{2}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *AddInboundRequest) GetInbound() *core.InboundHandlerConfig {
|
|
|
|
|
|
|
+func (x *AddInboundRequest) GetInbound() *v4.InboundHandlerConfig {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Inbound
|
|
return x.Inbound
|
|
|
}
|
|
}
|
|
@@ -390,7 +390,7 @@ type AddOutboundRequest struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
- Outbound *core.OutboundHandlerConfig `protobuf:"bytes,1,opt,name=outbound,proto3" json:"outbound,omitempty"`
|
|
|
|
|
|
|
+ Outbound *v4.OutboundHandlerConfig `protobuf:"bytes,1,opt,name=outbound,proto3" json:"outbound,omitempty"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (x *AddOutboundRequest) Reset() {
|
|
func (x *AddOutboundRequest) Reset() {
|
|
@@ -425,7 +425,7 @@ func (*AddOutboundRequest) Descriptor() ([]byte, []int) {
|
|
|
return file_app_proxyman_command_command_proto_rawDescGZIP(), []int{8}
|
|
return file_app_proxyman_command_command_proto_rawDescGZIP(), []int{8}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (x *AddOutboundRequest) GetOutbound() *core.OutboundHandlerConfig {
|
|
|
|
|
|
|
+func (x *AddOutboundRequest) GetOutbound() *v4.OutboundHandlerConfig {
|
|
|
if x != nil {
|
|
if x != nil {
|
|
|
return x.Outbound
|
|
return x.Outbound
|
|
|
}
|
|
}
|
|
@@ -794,10 +794,11 @@ var file_app_proxyman_command_command_proto_rawDesc = []byte{
|
|
|
0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61,
|
|
0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0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, 0x33, 0x67, 0x69, 0x74, 0x68,
|
|
|
|
|
+ 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
|
|
|
|
|
+ 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70,
|
|
|
0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa,
|
|
0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa,
|
|
|
0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,
|
|
0x02, 0x1f, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70,
|
|
|
0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
|
0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x6d, 0x61, 0x6e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
|
|
@@ -818,25 +819,25 @@ func file_app_proxyman_command_command_proto_rawDescGZIP() []byte {
|
|
|
|
|
|
|
|
var file_app_proxyman_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
|
var file_app_proxyman_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
|
|
var file_app_proxyman_command_command_proto_goTypes = []interface{}{
|
|
var file_app_proxyman_command_command_proto_goTypes = []interface{}{
|
|
|
- (*AddUserOperation)(nil), // 0: v2ray.core.app.proxyman.command.AddUserOperation
|
|
|
|
|
- (*RemoveUserOperation)(nil), // 1: v2ray.core.app.proxyman.command.RemoveUserOperation
|
|
|
|
|
- (*AddInboundRequest)(nil), // 2: v2ray.core.app.proxyman.command.AddInboundRequest
|
|
|
|
|
- (*AddInboundResponse)(nil), // 3: v2ray.core.app.proxyman.command.AddInboundResponse
|
|
|
|
|
- (*RemoveInboundRequest)(nil), // 4: v2ray.core.app.proxyman.command.RemoveInboundRequest
|
|
|
|
|
- (*RemoveInboundResponse)(nil), // 5: v2ray.core.app.proxyman.command.RemoveInboundResponse
|
|
|
|
|
- (*AlterInboundRequest)(nil), // 6: v2ray.core.app.proxyman.command.AlterInboundRequest
|
|
|
|
|
- (*AlterInboundResponse)(nil), // 7: v2ray.core.app.proxyman.command.AlterInboundResponse
|
|
|
|
|
- (*AddOutboundRequest)(nil), // 8: v2ray.core.app.proxyman.command.AddOutboundRequest
|
|
|
|
|
- (*AddOutboundResponse)(nil), // 9: v2ray.core.app.proxyman.command.AddOutboundResponse
|
|
|
|
|
- (*RemoveOutboundRequest)(nil), // 10: v2ray.core.app.proxyman.command.RemoveOutboundRequest
|
|
|
|
|
- (*RemoveOutboundResponse)(nil), // 11: v2ray.core.app.proxyman.command.RemoveOutboundResponse
|
|
|
|
|
- (*AlterOutboundRequest)(nil), // 12: v2ray.core.app.proxyman.command.AlterOutboundRequest
|
|
|
|
|
- (*AlterOutboundResponse)(nil), // 13: v2ray.core.app.proxyman.command.AlterOutboundResponse
|
|
|
|
|
- (*Config)(nil), // 14: v2ray.core.app.proxyman.command.Config
|
|
|
|
|
- (*protocol.User)(nil), // 15: v2ray.core.common.protocol.User
|
|
|
|
|
- (*core.InboundHandlerConfig)(nil), // 16: v2ray.core.InboundHandlerConfig
|
|
|
|
|
- (*serial.TypedMessage)(nil), // 17: v2ray.core.common.serial.TypedMessage
|
|
|
|
|
- (*core.OutboundHandlerConfig)(nil), // 18: v2ray.core.OutboundHandlerConfig
|
|
|
|
|
|
|
+ (*AddUserOperation)(nil), // 0: v2ray.core.app.proxyman.command.AddUserOperation
|
|
|
|
|
+ (*RemoveUserOperation)(nil), // 1: v2ray.core.app.proxyman.command.RemoveUserOperation
|
|
|
|
|
+ (*AddInboundRequest)(nil), // 2: v2ray.core.app.proxyman.command.AddInboundRequest
|
|
|
|
|
+ (*AddInboundResponse)(nil), // 3: v2ray.core.app.proxyman.command.AddInboundResponse
|
|
|
|
|
+ (*RemoveInboundRequest)(nil), // 4: v2ray.core.app.proxyman.command.RemoveInboundRequest
|
|
|
|
|
+ (*RemoveInboundResponse)(nil), // 5: v2ray.core.app.proxyman.command.RemoveInboundResponse
|
|
|
|
|
+ (*AlterInboundRequest)(nil), // 6: v2ray.core.app.proxyman.command.AlterInboundRequest
|
|
|
|
|
+ (*AlterInboundResponse)(nil), // 7: v2ray.core.app.proxyman.command.AlterInboundResponse
|
|
|
|
|
+ (*AddOutboundRequest)(nil), // 8: v2ray.core.app.proxyman.command.AddOutboundRequest
|
|
|
|
|
+ (*AddOutboundResponse)(nil), // 9: v2ray.core.app.proxyman.command.AddOutboundResponse
|
|
|
|
|
+ (*RemoveOutboundRequest)(nil), // 10: v2ray.core.app.proxyman.command.RemoveOutboundRequest
|
|
|
|
|
+ (*RemoveOutboundResponse)(nil), // 11: v2ray.core.app.proxyman.command.RemoveOutboundResponse
|
|
|
|
|
+ (*AlterOutboundRequest)(nil), // 12: v2ray.core.app.proxyman.command.AlterOutboundRequest
|
|
|
|
|
+ (*AlterOutboundResponse)(nil), // 13: v2ray.core.app.proxyman.command.AlterOutboundResponse
|
|
|
|
|
+ (*Config)(nil), // 14: v2ray.core.app.proxyman.command.Config
|
|
|
|
|
+ (*protocol.User)(nil), // 15: v2ray.core.common.protocol.User
|
|
|
|
|
+ (*v4.InboundHandlerConfig)(nil), // 16: v2ray.core.InboundHandlerConfig
|
|
|
|
|
+ (*serial.TypedMessage)(nil), // 17: v2ray.core.common.serial.TypedMessage
|
|
|
|
|
+ (*v4.OutboundHandlerConfig)(nil), // 18: v2ray.core.OutboundHandlerConfig
|
|
|
}
|
|
}
|
|
|
var file_app_proxyman_command_command_proto_depIdxs = []int32{
|
|
var file_app_proxyman_command_command_proto_depIdxs = []int32{
|
|
|
15, // 0: v2ray.core.app.proxyman.command.AddUserOperation.user:type_name -> v2ray.core.common.protocol.User
|
|
15, // 0: v2ray.core.app.proxyman.command.AddUserOperation.user:type_name -> v2ray.core.common.protocol.User
|