fix ANDROID-49: VirtualNetworkConfig.equals is wrong

This commit is contained in:
Brenton Bostick 2023-02-27 10:20:43 -05:00 committed by Sean OMeara
parent 61361f9a52
commit a3c6d3e27f

View file

@ -154,7 +154,7 @@ public final class VirtualNetworkConfig implements Comparable<VirtualNetworkConf
}
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);