Update test server to use getLocalHost rather than loopback.

Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
Emmanuel Bigeon 2018-11-30 09:05:40 -05:00
parent 9374c5a681
commit 5e1050a9d7

View File

@ -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));