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