Skip to content
Snippets Groups Projects
Commit 18608837 authored by Jan Kožusznik's avatar Jan Kožusznik
Browse files

feature: use loopback address

parent a98ea6dd
Branches
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class MidlewareTunnel implements Closeable {
if (ss != null) {
throw new IllegalStateException();
}
ss = new ServerSocket(localport, backlog, InetAddress.getLocalHost());
ss = new ServerSocket(localport, backlog, InetAddress.getLoopbackAddress());
ss.setSoTimeout(TIMEOUT);
mainLatch = new CountDownLatch(1);
mainFuture = executorService.submit(() -> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment