[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [onionoo/master] Reset IPv6 exit-policy summary in details status.



commit 6d23a7ce43e5d88cff132cacd38206ebb5d7e62c
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon May 29 09:32:48 2017 +0200

    Reset IPv6 exit-policy summary in details status.
    
    Fixes #22030.
---
 CHANGELOG.md                                                       | 7 +++++++
 .../org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java   | 2 ++
 2 files changed, 9 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index b2922d9..8412f87 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# Changes in version 4.0-1.?.? - 2017-0?-??
+
+ * Medium changes
+   - Reset IPv6 exit-policy summary in details status if a newer
+     server descriptor doesn't contain such a summary anymore.
+
+
 # Changes in version 4.0-1.3.0 - 2017-08-04
 
  * Medium changes
diff --git a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
index 8172cb7..cc50f4b 100644
--- a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
+++ b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
@@ -196,6 +196,8 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
       exitPolicyV6Summary.put(descriptor.getIpv6DefaultPolicy(),
           portsOrPortRanges);
       detailsStatus.setExitPolicyV6Summary(exitPolicyV6Summary);
+    } else {
+      detailsStatus.setExitPolicyV6Summary(null);
     }
     detailsStatus.setHibernating(descriptor.isHibernating() ? true :
         null);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits