'\n' -> "\r\n"
This commit is contained in:
parent
3ff8cd46c9
commit
437cc0211c
@ -80,7 +80,7 @@ public class SecureChatClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sends the received line to the server.
|
// Sends the received line to the server.
|
||||||
lastWriteFuture = channel.write(line + '\r' + '\n');
|
lastWriteFuture = channel.write(line + "\r\n");
|
||||||
|
|
||||||
// If user typed the 'bye' command, wait until the server closes
|
// If user typed the 'bye' command, wait until the server closes
|
||||||
// the connection.
|
// the connection.
|
||||||
|
@ -78,7 +78,7 @@ public class TelnetClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Sends the received line to the server.
|
// Sends the received line to the server.
|
||||||
lastWriteFuture = channel.write(line + '\n');
|
lastWriteFuture = channel.write(line + "\r\n");
|
||||||
|
|
||||||
// If user typed the 'bye' command, wait until the server closes
|
// If user typed the 'bye' command, wait until the server closes
|
||||||
// the connection.
|
// the connection.
|
||||||
|
Loading…
Reference in New Issue
Block a user