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

karsten at torproject.org karsten at torproject.org
Tue Oct 15 13:58:19 UTC 2019


commit c6f7b83915888c9b4b61a8aa6ae39ec1b2248b71
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Mon Sep 30 17:43:22 2019 +0200

    Make Jetty listen host configurable.
    
    The default listen host is still 127.0.0.1, but now it's possible to
    configure a different listen host, like 0.0.0.0, which can facilitate
    local testing.
---
 src/main/resources/jetty.xml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/main/resources/jetty.xml b/src/main/resources/jetty.xml
index e1e4d4d..56887f7 100644
--- a/src/main/resources/jetty.xml
+++ b/src/main/resources/jetty.xml
@@ -75,7 +75,9 @@
         <Set name="port">
           <SystemProperty name="exonerator.jetty.port" default="8080" />
         </Set>
-        <Set name="host">127.0.0.1</Set>
+        <Set name="host">
+          <SystemProperty name="exonerator.jetty.host" default="127.0.0.1" />
+        </Set>
       </New>
     </Arg>
   </Call>





More information about the tor-commits mailing list