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

karsten at torproject.org karsten at torproject.org
Thu Aug 31 15:02:37 UTC 2017


commit 6d23a7ce43e5d88cff132cacd38206ebb5d7e62c
Author: Karsten Loesing <karsten.loesing at gmx.net>
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);





More information about the tor-commits mailing list