summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorGrant Limberg <glimberg@gmail.com>2015-06-19 19:00:06 -0700
committerGrant Limberg <glimberg@gmail.com>2015-06-19 19:00:06 -0700
commitadf89901c4d2de0d2338889a7fa1e5df1ab6b9be (patch)
tree51688e816ba0b4548e695ecaa0c96c091be319c5 /java
parentdfdd46db80331104366747e336323095aba2c886 (diff)
downloadinfinitytier-adf89901c4d2de0d2338889a7fa1e5df1ab6b9be.tar.gz
infinitytier-adf89901c4d2de0d2338889a7fa1e5df1ab6b9be.zip
dont consider multicast groups in VirtualNetworkConfig.equals()
Diffstat (limited to 'java')
-rw-r--r--java/src/com/zerotier/sdk/VirtualNetworkConfig.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/java/src/com/zerotier/sdk/VirtualNetworkConfig.java b/java/src/com/zerotier/sdk/VirtualNetworkConfig.java
index 35453ddc..980f48f7 100644
--- a/java/src/com/zerotier/sdk/VirtualNetworkConfig.java
+++ b/java/src/com/zerotier/sdk/VirtualNetworkConfig.java
@@ -55,18 +55,6 @@ public final class VirtualNetworkConfig {
}
public boolean equals(VirtualNetworkConfig cfg) {
- boolean mcgEqual = true;
- if(multicastSubscriptions.length == cfg.multicastSubscriptions.length) {
- for(int i = 0; i < multicastSubscriptions.length; ++i) {
- if(!multicastSubscriptions[i].equals(cfg.multicastSubscriptions[i]))
- {
- return false;
- }
- }
- } else {
- mcgEqual = false;
- }
-
boolean aaEqual = true;
if(assignedAddresses.length == cfg.assignedAddresses.length) {
for(int i = 0; i < assignedAddresses.length; ++i) {
@@ -89,7 +77,7 @@ public final class VirtualNetworkConfig {
broadcastEnabled == cfg.broadcastEnabled &&
portError == cfg.portError &&
enabled == cfg.enabled &&
- mcgEqual && aaEqual;
+ aaEqual;
}
/**