mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-11 13:35:17 +00:00
fix dns equality check in Android
This commit is contained in:
parent
891815054c
commit
6b21a4f494
@ -151,6 +151,11 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean dnsEquals = false;
|
||||||
|
if (this.dns != null && cfg.dns != null) {
|
||||||
|
dnsEquals = this.dns.equals(cfg.dns);
|
||||||
|
}
|
||||||
|
|
||||||
return this.nwid == cfg.nwid &&
|
return this.nwid == cfg.nwid &&
|
||||||
this.mac == cfg.mac &&
|
this.mac == cfg.mac &&
|
||||||
this.name.equals(cfg.name) &&
|
this.name.equals(cfg.name) &&
|
||||||
@ -162,7 +167,7 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
|
|||||||
this.broadcastEnabled == cfg.broadcastEnabled &&
|
this.broadcastEnabled == cfg.broadcastEnabled &&
|
||||||
this.portError == cfg.portError &&
|
this.portError == cfg.portError &&
|
||||||
this.enabled == cfg.enabled &&
|
this.enabled == cfg.enabled &&
|
||||||
this.dns.equals(cfg.dns) &&
|
dnsEquals &&
|
||||||
aaEqual && routesEqual;
|
aaEqual && routesEqual;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user