mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
Resolves 'Operation Not Supported' SocketException (#149)
This commit is contained in:
1 parent
8afb4aa3a6
commit
15de342cc5
1 file changed
+8
-3
@@ -48,10 +48,15 @@ namespace Impostor.Hazel.Udp
|
||||
|
||||
_readerPool = readerPool;
|
||||
_pool = MemoryPool<byte>.Shared;
|
||||
_socket = new UdpClient(endPoint)
|
||||
_socket = new UdpClient(endPoint);
|
||||
|
||||
try
|
||||
{
|
||||
DontFragment = false
|
||||
};
|
||||
_socket.DontFragment = false;
|
||||
}
|
||||
catch (SocketException)
|
||||
{
|
||||
}
|
||||
|
||||
_reliablePacketTimer = new Timer(ManageReliablePackets, null, 100, Timeout.Infinite);
|
||||
|
||||
|
||||
Reference in new issue
Block a user