Author: alanmc
Date: 2008-01-27 13:27:40 -0500 (Sun, 27 Jan 2008)
New Revision: 94069

Modified:
   trunk/bitsharp/src/MonoTorrent/Client/ConnectionListeners/SocketListener.cs
Log:
Fixedb bug creating Uri objects.

Modified: 
trunk/bitsharp/src/MonoTorrent/Client/ConnectionListeners/SocketListener.cs
===================================================================
--- trunk/bitsharp/src/MonoTorrent/Client/ConnectionListeners/SocketListener.cs 
2008-01-27 18:16:19 UTC (rev 94068)
+++ trunk/bitsharp/src/MonoTorrent/Client/ConnectionListeners/SocketListener.cs 
2008-01-27 18:27:40 UTC (rev 94069)
@@ -152,7 +152,7 @@
                 peerSocket = listener.EndAccept(result);
 
                 IPEndPoint endpoint = (IPEndPoint)peerSocket.RemoteEndPoint;
-                Uri uri = new Uri("tcp://" + endpoint.Address.ToString() + 
endpoint.Port);
+                Uri uri = new Uri("tcp://" + endpoint.Address.ToString() + ':' 
+ endpoint.Port);
                 Peer peer = new Peer("", uri, new NoEncryption());
                                IConnection connection = new 
TCPConnection(peerSocket, true);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to