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

[tor-commits] [onionoo/master] Add "unreachable_or_addresses" to "fields" parameter.



commit 708946d2b5a73d868778af69d6f46a80400587f7
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Fri Nov 17 16:02:43 2017 +0100

    Add "unreachable_or_addresses" to "fields" parameter.
---
 CHANGELOG.md                                                     | 7 +++++++
 src/main/java/org/torproject/onionoo/server/ResponseBuilder.java | 3 +++
 2 files changed, 10 insertions(+)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1b7c400..eef02a8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+# Changes in version 4.3-1.7.1 - 2017-11-17
+
+ * Minor changes
+   - Include "unreachable_or_addresses" as accepted value in the
+     "fields" parameter.
+
+
 # Changes in version 4.3-1.7.0 - 2017-11-17
 
  * Medium changes
diff --git a/src/main/java/org/torproject/onionoo/server/ResponseBuilder.java b/src/main/java/org/torproject/onionoo/server/ResponseBuilder.java
index 267c359..58b66ce 100644
--- a/src/main/java/org/torproject/onionoo/server/ResponseBuilder.java
+++ b/src/main/java/org/torproject/onionoo/server/ResponseBuilder.java
@@ -339,6 +339,9 @@ public class ResponseBuilder {
             dd.setAllegedFamily(detailsDocument.getAllegedFamily());
           } else if (field.equals("indirect_family")) {
             dd.setIndirectFamily(detailsDocument.getIndirectFamily());
+          } else if (field.equals("unreachable_or_addresses")) {
+            dd.setUnreachableOrAddresses(
+                detailsDocument.getUnreachableOrAddresses());
           }
         }
         /* Don't escape HTML characters, like < and >, contained in

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