diff options
author | Adam Frisby | 2007-06-29 20:09:29 +0000 |
---|---|---|
committer | Adam Frisby | 2007-06-29 20:09:29 +0000 |
commit | 72cd28be1b743a61c739d7d13f933cf41e948fdf (patch) | |
tree | 2a52efa2178ccd3cf3c509fe8b42f72e52018e8c /OpenSim/Region/ClientStack | |
parent | * Applying Danx0r's BasicPhysics update. (diff) | |
download | opensim-SC-72cd28be1b743a61c739d7d13f933cf41e948fdf.zip opensim-SC-72cd28be1b743a61c739d7d13f933cf41e948fdf.tar.gz opensim-SC-72cd28be1b743a61c739d7d13f933cf41e948fdf.tar.bz2 opensim-SC-72cd28be1b743a61c739d7d13f933cf41e948fdf.tar.xz |
* Experimental patch: Replaced IPAddress.Any with IPAddress.Parse("0.0.0.0") to force IPv4
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/UDPServer.cs | 6 |
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); |