Skip to content

Commit 891601f

Browse files
committed
disable dual-mode workaround for RtpIceChannel unless running on Mono
this was already disabled for RTPChannel in d4a2e88
1 parent ace3ecd commit 891601f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/ICE/RtpIceChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2504,7 +2504,7 @@ protected virtual SocketError SendOverTCP(IceServer iceServer, byte[] buffer)
25042504
}
25052505

25062506
//Prevent Send to IPV4 while socket is IPV6 (Mono Error)
2507-
if (dstEndPoint.AddressFamily == AddressFamily.InterNetwork && sendSocket.AddressFamily != dstEndPoint.AddressFamily)
2507+
if (isMono && dstEndPoint.AddressFamily == AddressFamily.InterNetwork && sendSocket.AddressFamily != dstEndPoint.AddressFamily)
25082508
{
25092509
dstEndPoint = new IPEndPoint(dstEndPoint.Address.MapToIPv6(), dstEndPoint.Port);
25102510
}

src/net/RTP/RTPChannel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public enum RTPChannelSocketsEnum
362362
/// </summary>
363363
public class RTPChannel : IDisposable
364364
{
365-
private static readonly bool isMono = Type.GetType("Mono.Runtime") != null;
365+
internal static readonly bool isMono = Type.GetType("Mono.Runtime") != null;
366366
private static ILogger logger = Log.Logger;
367367
protected UdpReceiver m_rtpReceiver;
368368
private Socket m_controlSocket;

0 commit comments

Comments
 (0)