From ca6c90eacd24c09092d2ed31d4a1d7f0a0fae946 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Mon, 10 Oct 2016 14:35:04 +0800 Subject: [PATCH] --- src/META-INF/application-template.xml | 3 +-- src/org/redkale/boot/Application.java | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/META-INF/application-template.xml b/src/META-INF/application-template.xml index 745ef34ba..3dff4e3f7 100644 --- a/src/META-INF/application-template.xml +++ b/src/META-INF/application-template.xml @@ -19,9 +19,8 @@ serviceid1_name1 serviceid1_name2 serviceid2_name1 serviceid2_name2 --> diff --git a/src/org/redkale/boot/Application.java b/src/org/redkale/boot/Application.java index 7fa48875a..d35852cb5 100644 --- a/src/org/redkale/boot/Application.java +++ b/src/org/redkale/boot/Application.java @@ -359,7 +359,7 @@ public final class Application { final DatagramChannel channel = DatagramChannel.open(); channel.configureBlocking(true); channel.socket().setSoTimeout(3000); - channel.bind(new InetSocketAddress(config.getValue("host", "127.0.0.1"), config.getIntValue("port"))); + channel.bind(new InetSocketAddress("127.0.0.1", config.getIntValue("port"))); boolean loop = true; ByteBuffer buffer = ByteBuffer.allocateDirect(1024); while (loop) { @@ -414,7 +414,7 @@ public final class Application { private void sendCommand(String command) throws Exception { final DatagramChannel channel = DatagramChannel.open(); channel.configureBlocking(true); - channel.connect(new InetSocketAddress(config.getValue("host", "127.0.0.1"), config.getIntValue("port"))); + channel.connect(new InetSocketAddress("127.0.0.1", config.getIntValue("port"))); ByteBuffer buffer = ByteBuffer.allocate(128); buffer.put(command.getBytes()); buffer.flip();