JAL-1725 restrict Jalview's Jetty server to localhost
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 27 Aug 2015 10:45:36 +0000 (11:45 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 27 Aug 2015 10:45:36 +0000 (11:45 +0100)
src/jalview/httpserver/HttpServer.java

index 3127530..7ab0d63 100644 (file)
@@ -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);
 
       /*