Browse Source

fix ANDROID-49: VirtualNetworkConfig.equals is wrong

Brenton Bostick 2 years ago
parent
commit
9cb16accfd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      java/src/com/zerotier/sdk/VirtualNetworkConfig.java

+ 1 - 1
java/src/com/zerotier/sdk/VirtualNetworkConfig.java

@@ -154,7 +154,7 @@ 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;
             dnsEquals = true;
         } else if (this.dns != null) {
         } else if (this.dns != null) {
             dnsEquals = this.dns.equals(cfg.dns);
             dnsEquals = this.dns.equals(cfg.dns);