mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-20 05:28:01 +00:00
another comparison fix
This commit is contained in:
parent
13d7e2f2b9
commit
86ff1e7cd2
@ -152,7 +152,9 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
|
|||||||
}
|
}
|
||||||
|
|
||||||
boolean dnsEquals = false;
|
boolean dnsEquals = false;
|
||||||
if (this.dns != null && cfg.dns != null) {
|
if (this.dns == null || cfg.dns == null) {
|
||||||
|
dnsEquals = true;
|
||||||
|
} else if (this.dns != null) {
|
||||||
dnsEquals = this.dns.equals(cfg.dns);
|
dnsEquals = this.dns.equals(cfg.dns);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ public class VirtualNetworkDNS implements Comparable<VirtualNetworkDNS> {
|
|||||||
public VirtualNetworkDNS() {}
|
public VirtualNetworkDNS() {}
|
||||||
|
|
||||||
public boolean equals(VirtualNetworkDNS o) {
|
public boolean equals(VirtualNetworkDNS o) {
|
||||||
|
if (o == null) return false;
|
||||||
return domain.equals(o.domain) && servers.equals(o.servers);
|
return domain.equals(o.domain) && servers.equals(o.servers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user