aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2017-04-07 15:26:19 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2017-04-07 15:26:19 -0400
commit66e901ef93942c631c3ee3b222cc75265e1b17fb (patch)
tree527c29cb026c1b986585936ed2d84662a6c8d8de
parent0535f663b6f25e839b561d513234b30003c96861 (diff)
fix merge conflicts
-rw-r--r--Emby.Common.Implementations/Net/SocketFactory.cs8
-rw-r--r--SharedVersion.cs2
2 files changed, 7 insertions, 3 deletions
diff --git a/Emby.Common.Implementations/Net/SocketFactory.cs b/Emby.Common.Implementations/Net/SocketFactory.cs
index 5169c5a21..39f236afa 100644
--- a/Emby.Common.Implementations/Net/SocketFactory.cs
+++ b/Emby.Common.Implementations/Net/SocketFactory.cs
@@ -70,7 +70,11 @@ namespace Emby.Common.Implementations.Net
{
if (remotePort < 0) throw new ArgumentException("remotePort cannot be less than zero.", "remotePort");
- var retVal = new Socket(AddressFamily.InterNetwork, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
+ var addressFamily = remoteAddress.AddressFamily == IpAddressFamily.InterNetwork
+ ? AddressFamily.InterNetwork
+ : AddressFamily.InterNetworkV6;
+
+ var retVal = new Socket(addressFamily, System.Net.Sockets.SocketType.Stream, System.Net.Sockets.ProtocolType.Tcp);
try
{
@@ -80,7 +84,7 @@ namespace Emby.Common.Implementations.Net
{
// This is not supported on all operating systems (qnap)
}
-
+
try
{
return new UdpSocket(retVal, new IpEndPointInfo(remoteAddress, remotePort));
diff --git a/SharedVersion.cs b/SharedVersion.cs
index 6b21062fa..891f858e0 100644
--- a/SharedVersion.cs
+++ b/SharedVersion.cs
@@ -1,3 +1,3 @@
using System.Reflection;
-[assembly: AssemblyVersion("3.2.10")]
+[assembly: AssemblyVersion("3.2.10.7")]