1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-26 20:15:26 -05: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

@@ -50,6 +50,13 @@ func (m *Config) GetAddress() *v2ray_core_common_net.IPOrDomain {
return nil
}
func (m *Config) GetPort() uint32 {
if m != nil {
return m.Port
}
return 0
}
func (m *Config) GetNetworkList() *v2ray_core_common_net1.NetworkList {
if m != nil {
return m.NetworkList
@@ -57,6 +64,20 @@ func (m *Config) GetNetworkList() *v2ray_core_common_net1.NetworkList {
return nil
}
func (m *Config) GetTimeout() uint32 {
if m != nil {
return m.Timeout
}
return 0
}
func (m *Config) GetFollowRedirect() bool {
if m != nil {
return m.FollowRedirect
}
return false
}
func init() {
proto.RegisterType((*Config)(nil), "v2ray.core.proxy.dokodemo.Config")
}

View File

@@ -59,6 +59,20 @@ func (m *Config) String() string { return proto.CompactTextString(m)
func (*Config) ProtoMessage() {}
func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Config) GetDomainStrategy() Config_DomainStrategy {
if m != nil {
return m.DomainStrategy
}
return Config_AS_IS
}
func (m *Config) GetTimeout() uint32 {
if m != nil {
return m.Timeout
}
return 0
}
func init() {
proto.RegisterType((*Config)(nil), "v2ray.core.proxy.freedom.Config")
proto.RegisterEnum("v2ray.core.proxy.freedom.Config_DomainStrategy", Config_DomainStrategy_name, Config_DomainStrategy_value)

View File

@@ -39,6 +39,13 @@ func (m *ServerConfig) String() string { return proto.CompactTextStri
func (*ServerConfig) ProtoMessage() {}
func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ServerConfig) GetTimeout() uint32 {
if m != nil {
return m.Timeout
}
return 0
}
// ClientConfig for HTTP proxy client.
type ClientConfig struct {
}

View File

@@ -97,6 +97,27 @@ func (m *Account) String() string { return proto.CompactTextString(m)
func (*Account) ProtoMessage() {}
func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Account) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
func (m *Account) GetCipherType() CipherType {
if m != nil {
return m.CipherType
}
return CipherType_UNKNOWN
}
func (m *Account) GetOta() Account_OneTimeAuth {
if m != nil {
return m.Ota
}
return Account_Auto
}
type ServerConfig struct {
UdpEnabled bool `protobuf:"varint,1,opt,name=udp_enabled,json=udpEnabled" json:"udp_enabled,omitempty"`
User *v2ray_core_common_protocol.User `protobuf:"bytes,2,opt,name=user" json:"user,omitempty"`
@@ -107,6 +128,13 @@ func (m *ServerConfig) String() string { return proto.CompactTextStri
func (*ServerConfig) ProtoMessage() {}
func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ServerConfig) GetUdpEnabled() bool {
if m != nil {
return m.UdpEnabled
}
return false
}
func (m *ServerConfig) GetUser() *v2ray_core_common_protocol.User {
if m != nil {
return m.User

View File

@@ -63,6 +63,20 @@ func (m *Account) String() string { return proto.CompactTextString(m)
func (*Account) ProtoMessage() {}
func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Account) GetUsername() string {
if m != nil {
return m.Username
}
return ""
}
func (m *Account) GetPassword() string {
if m != nil {
return m.Password
}
return ""
}
type ServerConfig struct {
AuthType AuthType `protobuf:"varint,1,opt,name=auth_type,json=authType,enum=v2ray.core.proxy.socks.AuthType" json:"auth_type,omitempty"`
Accounts map[string]string `protobuf:"bytes,2,rep,name=accounts" json:"accounts,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
@@ -76,6 +90,13 @@ func (m *ServerConfig) String() string { return proto.CompactTextStri
func (*ServerConfig) ProtoMessage() {}
func (*ServerConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ServerConfig) GetAuthType() AuthType {
if m != nil {
return m.AuthType
}
return AuthType_NO_AUTH
}
func (m *ServerConfig) GetAccounts() map[string]string {
if m != nil {
return m.Accounts
@@ -90,6 +111,20 @@ func (m *ServerConfig) GetAddress() *v2ray_core_common_net.IPOrDomain {
return nil
}
func (m *ServerConfig) GetUdpEnabled() bool {
if m != nil {
return m.UdpEnabled
}
return false
}
func (m *ServerConfig) GetTimeout() uint32 {
if m != nil {
return m.Timeout
}
return 0
}
type ClientConfig struct {
Server []*v2ray_core_common_protocol1.ServerEndpoint `protobuf:"bytes,1,rep,name=server" json:"server,omitempty"`
}

View File

@@ -43,6 +43,20 @@ func (m *Account) String() string { return proto.CompactTextString(m)
func (*Account) ProtoMessage() {}
func (*Account) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Account) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Account) GetAlterId() uint32 {
if m != nil {
return m.AlterId
}
return 0
}
func (m *Account) GetSecuritySettings() *v2ray_core_common_protocol.SecurityConfig {
if m != nil {
return m.SecuritySettings

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"`