mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-11 22:31:04 +00:00
proto for dns config
This commit is contained in:
10 files changed
+163
-34
No files matched your search
@@ -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