proto for dns config

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

No files matched your search

+8
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),
}
}