pull/1/head
unknown 6 years ago
parent e9c86fd718
commit 00ae8a666f

@ -1,4 +1,5 @@
using System.Collections.Concurrent; using System.Collections.Concurrent;
using System.Net;
namespace ZeroLevel.Network namespace ZeroLevel.Network
{ {
@ -13,7 +14,7 @@ namespace ZeroLevel.Network
/// <returns>Server</returns> /// <returns>Server</returns>
public static IExService GetServer(int port = -1) public static IExService GetServer(int port = -1)
{ {
return new ExService(new ZExSocketObservableServer(new System.Net.IPEndPoint(NetUtils.GetNonLoopbackAddress(), port == -1 ? NetUtils.GetFreeTcpPort() : port))); return new ExService(new ZExSocketObservableServer(new System.Net.IPEndPoint(IPAddress.Any, port == -1 ? NetUtils.GetFreeTcpPort() : port)));
} }
/// <summary> /// <summary>
/// Creates a client to access the server using the specified protocol /// Creates a client to access the server using the specified protocol

@ -1 +1 @@
23b05e1da25edde99ed56a899f894605a2243d39 4d221d21073e6ec70fc75d0c6e7d2458aa0f2b9a

Loading…
Cancel
Save

Powered by TurnKey Linux.