mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-30 22:15:27 -05:00
accommodate protobuf compiler change
This commit is contained in:
@@ -24,6 +24,13 @@ func (m *Endpoint) String() string { return proto.CompactTextString(m
|
||||
func (*Endpoint) ProtoMessage() {}
|
||||
func (*Endpoint) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
|
||||
|
||||
func (m *Endpoint) GetNetwork() Network {
|
||||
if m != nil {
|
||||
return m.Network
|
||||
}
|
||||
return Network_Unknown
|
||||
}
|
||||
|
||||
func (m *Endpoint) GetAddress() *IPOrDomain {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
@@ -31,6 +38,13 @@ func (m *Endpoint) GetAddress() *IPOrDomain {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Endpoint) GetPort() uint32 {
|
||||
if m != nil {
|
||||
return m.Port
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Endpoint)(nil), "v2ray.core.common.net.Endpoint")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user