git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd817b5
)
JAL-1725 restrict Jalview's Jetty server to localhost
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 27 Aug 2015 10:45:36 +0000
(11:45 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 27 Aug 2015 10:45:36 +0000
(11:45 +0100)
src/jalview/httpserver/HttpServer.java
patch
|
blob
|
history
diff --git
a/src/jalview/httpserver/HttpServer.java
b/src/jalview/httpserver/HttpServer.java
index
3127530
..
7ab0d63
100644
(file)
--- 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);
/*