diff --git a/SocketEngine/UdpSocketListener.cs b/SocketEngine/UdpSocketListener.cs index 44850f946..1f1735cc2 100644 --- a/SocketEngine/UdpSocketListener.cs +++ b/SocketEngine/UdpSocketListener.cs @@ -35,8 +35,8 @@ public override bool Start(IServerConfig config) m_ListenSocket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true); m_ListenSocket.Bind(this.EndPoint); - //Mono doesn't support it - if (Platform.SupportSocketIOControlByCodeEnum) + // Mono doesn't support it as no ioctl call in Mono.Unix.Native + if (Platform.SupportSocketIOControlByCodeEnum && !Platform.IsMono) { uint IOC_IN = 0x80000000; uint IOC_VENDOR = 0x18000000;