Skip to content

Commit

Permalink
mdf pong msg
Browse files Browse the repository at this point in the history
  • Loading branch information
xxo1shine committed Mar 29, 2018
1 parent 90740a8 commit 7829583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void sendPing() {
}

void sendPong() {
Message pong = new PongMessage(node);
Message pong = new PongMessage(nodeManager.getPublicHomeNode());
logMessage(pong, false);
sendMessage(pong);
getNodeStatistics().discoverOutPong.add();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf buffer, List<Object> ou
final HelloMessage helloMessage = (HelloMessage) msg;

if (helloMessage.getVersion() != Args.getInstance().getNodeP2pVersion()) {
logger.info("version not support, you[{}] version[{}], my version[{}]",
ctx.channel().remoteAddress(), helloMessage.getVersion(), Args.getInstance().getNodeP2pVersion());
ctx.close();
return;
}
Expand Down

0 comments on commit 7829583

Please sign in to comment.