Merge branch 'dev' of github.com:zerotier/ZeroTierOne into dev

This commit is contained in:
Adam Ierymenko 2020-11-24 17:02:17 -05:00
commit 13d7e2f2b9
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3

View file

@ -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;
}