mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-27 04:25:44 -05:00
accommodate protobuf compiler change
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user