mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-29 15:43:52 +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 &&
|
||||
this.mac == cfg.mac &&
|
||||
this.name.equals(cfg.name) &&
|
||||
@ -162,7 +167,7 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
|
||||
this.broadcastEnabled == cfg.broadcastEnabled &&
|
||||
this.portError == cfg.portError &&
|
||||
this.enabled == cfg.enabled &&
|
||||
this.dns.equals(cfg.dns) &&
|
||||
dnsEquals &&
|
||||
aaEqual && routesEqual;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user