Zond: переименование параметров
This commit is contained in:
@@ -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")
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user