From: gmungoc Date: Thu, 27 Aug 2015 10:45:36 +0000 (+0100) Subject: JAL-1725 restrict Jalview's Jetty server to localhost X-Git-Tag: Jalview_2_9~10^2~17 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=a64b7f939013894d633a5446dab8519fab895f64;p=jalview.git JAL-1725 restrict Jalview's Jetty server to localhost --- diff --git a/src/jalview/httpserver/HttpServer.java b/src/jalview/httpserver/HttpServer.java index 3127530..7ab0d63 100644 --- a/src/jalview/httpserver/HttpServer.java +++ b/src/jalview/httpserver/HttpServer.java @@ -112,6 +112,8 @@ public class HttpServer server = new Server(tp); // 2 selector threads to handle incoming connections ServerConnector connector = new ServerConnector(server, 0, 2); + // restrict to localhost + connector.setHost("localhost"); server.addConnector(connector); /*