From 5e1050a9d70a05ff11082024dba9539b21ca9874 Mon Sep 17 00:00:00 2001 From: Emmanuel Bigeon Date: Fri, 30 Nov 2018 09:05:40 -0500 Subject: [PATCH] Update test server to use getLocalHost rather than loopback. Signed-off-by: Emmanuel Bigeon --- .../src/test/java/net/bigeon/gclc/socket/TestServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gclc-socket/src/test/java/net/bigeon/gclc/socket/TestServer.java b/gclc-socket/src/test/java/net/bigeon/gclc/socket/TestServer.java index 27555f7..7610be3 100644 --- a/gclc-socket/src/test/java/net/bigeon/gclc/socket/TestServer.java +++ b/gclc-socket/src/test/java/net/bigeon/gclc/socket/TestServer.java @@ -76,8 +76,7 @@ public class TestServer { input.setPrompt("> \n"); output = new PluggableConsoleOutput(); manager = new DConnexionManager<>(); - SHELL = new SocketConsoleApplicationShell(PORT, - InetAddress.getByName("127.0.0.1")); + SHELL = new SocketConsoleApplicationShell(PORT, InetAddress.getLocalHost()); final ConsoleApplication app = ConsoleTestApplication.create(output, input, manager); SHELL.setInterface(new SocketConsoleInterface(input, output));