diff --git a/TcpDotNet/ProtocolClient.cs b/TcpDotNet/ProtocolClient.cs index de0bb89..d6a32bc 100644 --- a/TcpDotNet/ProtocolClient.cs +++ b/TcpDotNet/ProtocolClient.cs @@ -91,7 +91,7 @@ public sealed class ProtocolClient : ClientNode } IsConnected = true; - RemoteEndPoint = BaseSocket.RemoteEndPoint; + RemoteEndPoint = BaseSocket.RemoteEndPoint!; State = ClientState.Handshaking; var handshakeRequest = new HandshakeRequestPacket(ProtocolVersion);