fix dns equality check in Android

This commit is contained in:
Grant Limberg 2020-11-24 13:51:00 -08:00
parent 891815054c
commit 6b21a4f494
No known key found for this signature in database
GPG Key ID: 2BA62CCABBB4095A

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