From: Matthew Endsley Date: Wed, 3 Feb 2021 09:14:05 +0000 (-0800) Subject: Ensure disconnect message is encrypted with DTLS X-Git-Tag: 1.0.0~20^2~12 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=32631b0b391e5f9a00f37c0c5ca376360f41efa7;p=rhonda%2Fimpostor.hazel.git Ensure disconnect message is encrypted with DTLS --- diff --git a/Hazel/Udp/UnityUdpClientConnection.cs b/Hazel/Udp/UnityUdpClientConnection.cs index b5c23bb..19256ab 100644 --- a/Hazel/Udp/UnityUdpClientConnection.cs +++ b/Hazel/Udp/UnityUdpClientConnection.cs @@ -237,12 +237,7 @@ namespace Hazel.Udp try { - socket.SendTo( - bytes, - 0, - bytes.Length, - SocketFlags.None, - RemoteEndPoint); + this.WriteBytesToConnection(bytes, bytes.Length); } catch { }