Sfoglia il codice sorgente

fix ANDROID-49: VirtualNetworkConfig.equals is wrong

Brenton Bostick 2 anni fa
parent
commit
9cb16accfd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
-        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);