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

[tor-commits] [exonerator/master] Make exonerator host configurable.



commit 02c9c5fbcc3c22545197719882bffb2e01c99bbd
Author: iwakeh <iwakeh@xxxxxxxxxxxxxx>
Date:   Thu Nov 2 12:47:59 2017 +0000

    Make exonerator host configurable.
    
    This is useful for local testing or different server setups.
    The host URL and port can be set by system property 'exonerator.url', e.g.,
    '-Dexonerator.url=http://127.0.0.1:8080'.  This applies to both the full and
    the dummy war.
---
 src/main/java/org/torproject/exonerator/ExoneraTorServlet.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/torproject/exonerator/ExoneraTorServlet.java b/src/main/java/org/torproject/exonerator/ExoneraTorServlet.java
index b9e2021..0ac1d6e 100644
--- a/src/main/java/org/torproject/exonerator/ExoneraTorServlet.java
+++ b/src/main/java/org/torproject/exonerator/ExoneraTorServlet.java
@@ -38,7 +38,8 @@ public class ExoneraTorServlet extends HttpServlet {
 
   private Logger logger;
 
-  private String exoneraTorHost = "https://exonerator.torproject.org";;
+  private String exoneraTorHost = System.getProperty("exonerator.url",
+      "https://exonerator.torproject.org";);
 
   private List<String> availableLanguages =
       Arrays.asList("de", "en", "fr", "ro", "sv");



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