Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonchen83 committed Aug 23, 2016
1 parent 0438788 commit 62732ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ private void auth(String password) throws IOException {
}

private void sendSlavePort() throws IOException {
//REPLCONF listening-prot 6380
//REPLCONF listening-prot ${port}
logger.info("REPLCONF listening-port " + socket.getLocalPort());
send("REPLCONF".getBytes(), "listening-port".getBytes(), String.valueOf(socket.getLocalPort()).getBytes());
final String reply = (String) reply();
Expand All @@ -208,7 +208,7 @@ private void sendSlavePort() throws IOException {
}

private void sendSlaveIp() throws IOException {
//REPLCONF capa eof
//REPLCONF ip-address ${address}
logger.info("REPLCONF ip-address " + socket.getLocalAddress().getHostAddress());
send("REPLCONF".getBytes(), "ip-address".getBytes(), socket.getLocalAddress().getHostAddress().getBytes());
final String reply = (String) reply();
Expand Down

0 comments on commit 62732ad

Please sign in to comment.