1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-21 13:09:11 -04:00

accommodate protobuf compiler change

This commit is contained in:
Darien Raymond
2016-12-23 12:42:25 +01:00
parent d9196b4217
commit a4dfca0ef7
33 changed files with 679 additions and 80 deletions

View File

@@ -40,6 +40,13 @@ func (m *DetourConfig) String() string { return proto.CompactTextStri
func (*DetourConfig) ProtoMessage() {}
func (*DetourConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *DetourConfig) GetTo() string {
if m != nil {
return m.To
}
return ""
}
type DefaultConfig struct {
AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId" json:"alter_id,omitempty"`
Level uint32 `protobuf:"varint,2,opt,name=level" json:"level,omitempty"`
@@ -50,6 +57,20 @@ func (m *DefaultConfig) String() string { return proto.CompactTextStr
func (*DefaultConfig) ProtoMessage() {}
func (*DefaultConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DefaultConfig) GetAlterId() uint32 {
if m != nil {
return m.AlterId
}
return 0
}
func (m *DefaultConfig) GetLevel() uint32 {
if m != nil {
return m.Level
}
return 0
}
type Config struct {
User []*v2ray_core_common_protocol.User `protobuf:"bytes,1,rep,name=user" json:"user,omitempty"`
Default *DefaultConfig `protobuf:"bytes,2,opt,name=default" json:"default,omitempty"`