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:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user