1
0
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:
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

@@ -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")
}