1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-31 22:45:39 -05:00

proto for dns config

This commit is contained in:
Darien Raymond
2016-09-20 16:05:35 +02:00
parent 7de7588ec2
commit d38e62932d
10 changed files with 163 additions and 34 deletions

View File

@@ -51,3 +51,11 @@ func (this Destination) String() string {
func (this Destination) Equals(another Destination) bool {
return this.Network == another.Network && this.Port == another.Port && this.Address.Equals(another.Address)
}
func (this *DestinationPB) AsDestination() Destination {
return Destination{
Network: this.Network,
Address: this.Address.AsAddress(),
Port: Port(this.Port),
}
}