aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Servers
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Servers')
-rw-r--r--OpenSim/Framework/Servers/UDPServerBase.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/Servers/UDPServerBase.cs b/OpenSim/Framework/Servers/UDPServerBase.cs
index 610d23b..2617c56 100644
--- a/OpenSim/Framework/Servers/UDPServerBase.cs
+++ b/OpenSim/Framework/Servers/UDPServerBase.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Framework.Servers
58 58
59 protected virtual void OnReceivedData(IAsyncResult result) 59 protected virtual void OnReceivedData(IAsyncResult result)
60 { 60 {
61 ipeSender = new IPEndPoint(IPAddress.Any, 0); 61 ipeSender = new IPEndPoint(IPAddress.Parse("0.0.0.0"), 0);
62 epSender = (EndPoint)ipeSender; 62 epSender = (EndPoint)ipeSender;
63 Packet packet = null; 63 Packet packet = null;
64 int numBytes = Server.EndReceiveFrom(result, ref epSender); 64 int numBytes = Server.EndReceiveFrom(result, ref epSender);
@@ -76,11 +76,11 @@ namespace OpenSim.Framework.Servers
76 public virtual void ServerListener() 76 public virtual void ServerListener()
77 { 77 {
78 78
79 ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); 79 ServerIncoming = new IPEndPoint(IPAddress.Parse("0.0.0.0"), listenPort);
80 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); 80 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
81 Server.Bind(ServerIncoming); 81 Server.Bind(ServerIncoming);
82 82
83 ipeSender = new IPEndPoint(IPAddress.Any, 0); 83 ipeSender = new IPEndPoint(IPAddress.Parse("0.0.0.0"), 0);
84 epSender = (EndPoint)ipeSender; 84 epSender = (EndPoint)ipeSender;
85 ReceivedData = new AsyncCallback(this.OnReceivedData); 85 ReceivedData = new AsyncCallback(this.OnReceivedData);
86 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); 86 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);