From a64b7f939013894d633a5446dab8519fab895f64 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 27 Aug 2015 11:45:36 +0100 Subject: [PATCH] JAL-1725 restrict Jalview's Jetty server to localhost --- src/jalview/httpserver/HttpServer.java | 2 ++ 1 file changed, 2 insertions(+) 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); /* -- 1.7.10.2