aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/UDPServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/UDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/UDPServer.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/UDPServer.cs b/OpenSim/Region/ClientStack/UDPServer.cs
index 259352c..b764519 100644
--- a/OpenSim/Region/ClientStack/UDPServer.cs
+++ b/OpenSim/Region/ClientStack/UDPServer.cs
@@ -112,7 +112,7 @@ namespace OpenSim.Region.ClientStack
112 112
113 protected virtual void OnReceivedData(IAsyncResult result) 113 protected virtual void OnReceivedData(IAsyncResult result)
114 { 114 {
115 ipeSender = new IPEndPoint(IPAddress.Any, 0); 115 ipeSender = new IPEndPoint(IPAddress.Parse("0.0.0.0"), 0);
116 epSender = (EndPoint)ipeSender; 116 epSender = (EndPoint)ipeSender;
117 Packet packet = null; 117 Packet packet = null;
118 int numBytes = Server.EndReceiveFrom(result, ref epSender); 118 int numBytes = Server.EndReceiveFrom(result, ref epSender);
@@ -151,13 +151,13 @@ namespace OpenSim.Region.ClientStack
151 { 151 {
152 m_log.Status("UDPServer.cs:ServerListener() - Opening UDP socket on " + listenPort); 152 m_log.Status("UDPServer.cs:ServerListener() - Opening UDP socket on " + listenPort);
153 153
154 ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); 154 ServerIncoming = new IPEndPoint(IPAddress.Parse("0.0.0.0"), listenPort);
155 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); 155 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
156 Server.Bind(ServerIncoming); 156 Server.Bind(ServerIncoming);
157 157
158 m_log.Verbose("UDPServer.cs:ServerListener() - UDP socket bound, getting ready to listen"); 158 m_log.Verbose("UDPServer.cs:ServerListener() - UDP socket bound, getting ready to listen");
159 159
160 ipeSender = new IPEndPoint(IPAddress.Any, 0); 160 ipeSender = new IPEndPoint(IPAddress.Parse("0.0.0.0"), 0);
161 epSender = (EndPoint)ipeSender; 161 epSender = (EndPoint)ipeSender;
162 ReceivedData = new AsyncCallback(this.OnReceivedData); 162 ReceivedData = new AsyncCallback(this.OnReceivedData);
163 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null); 163 Server.BeginReceiveFrom(RecvBuffer, 0, RecvBuffer.Length, SocketFlags.None, ref epSender, ReceivedData, null);