← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2935: Fix a mixup between IPs and hostnames leading to wrong search results

 

------------------------------------------------------------
revno: 2935
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Thu 2012-05-31 18:43:59 +0200
message:
  Fix a mixup between IPs and hostnames leading to wrong search results
modified:
  changelog.txt
  dcpp/Socket.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt	2012-05-30 19:14:19 +0000
+++ changelog.txt	2012-05-31 16:43:59 +0000
@@ -3,6 +3,7 @@
 * [L#984330] Make PM windows more aware of the selected hub
 * [L#927821] Don't choke on hub addresses with spaces
 * Update OpenSSL to version 1.0.1c
+* Fix a mixup between IPs and hostnames leading to wrong search results
 
 -- 0.799 2012-05-05 --
 * Add icons (iceman50)

=== modified file 'dcpp/Socket.cpp'
--- dcpp/Socket.cpp	2012-05-23 22:05:22 +0000
+++ dcpp/Socket.cpp	2012-05-31 16:43:59 +0000
@@ -347,7 +347,7 @@
 			}
 
 			check([&] { return ::connect(sock, ai->ai_addr, ai->ai_addrlen); }, true);
-			setIp(aAddr);
+			setIp(resolveName(ai->ai_addr, ai->ai_addrlen));
 		}
 	}
 }