Archived
0

Zond: переименование параметров

This commit is contained in:
2017-08-13 19:19:42 +03:00
parent 0f213e1ba9
commit 9b5ff8a6ad
3 changed files with 8 additions and 8 deletions

View File

@@ -45,8 +45,8 @@ public class ClientPacketHandler extends ChannelInboundHandlerAdapter implements
ctx.channel().attr(KNOWN_HANDLERS).set(handshakeHandlers); ctx.channel().attr(KNOWN_HANDLERS).set(handshakeHandlers);
ctx.channel().writeAndFlush(new CS_Handshake( ctx.channel().writeAndFlush(new CS_Handshake(
Config.getInstance().getString("serverId"), Config.getInstance().getString("asys.serverId"),
Config.getInstance().getString("passcode") Config.getInstance().getString("asys.passcode")
)); ));
} }

View File

@@ -31,8 +31,8 @@ public class Connector {
connectTicker.setTask(() -> { connectTicker.setTask(() -> {
Shell.getInstance().getOutput() Shell.getInstance().getOutput()
.println(String.format("Connect(%d) to ASys...", ++tryConnect)); .println(String.format("Connect(%d) to ASys...", ++tryConnect));
client.connect(Config.getInstance().getString("host"), client.connect(Config.getInstance().getString("asys.host"),
Config.getInstance().getInt("port")); Config.getInstance().getInt("asys.port"));
if (client.isConnected()) { if (client.isConnected()) {
stopReconnect(); stopReconnect();
} else { } else {

View File

@@ -1,7 +1,7 @@
serverId = SpigotServer0 asys.serverId = SpigotServer0
host = 127.0.0.1 asys.host = 127.0.0.1
port = 8779 asys.port = 8779
passcode = testpassphrase asys.passcode = testpassphrase
bridge.port = 8710 bridge.port = 8710
bridge.second = 5 bridge.second = 5
pingmonitor.delay = 5 pingmonitor.delay = 5