mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -05:00
still trying to fix this list serial ip address
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1919 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d485c71126
commit
a83345e394
@ -366,8 +366,14 @@ void p3disc::sendOwnDetails(std::string to)
|
|||||||
std::cerr << "p3disc::sendOwnDetails() detail.currentlocaladdr.sin_addr : " << inet_ntoa(detail.currentlocaladdr.sin_addr) << ":" << ntohs(detail.currentlocaladdr.sin_port) << std::endl;
|
std::cerr << "p3disc::sendOwnDetails() detail.currentlocaladdr.sin_addr : " << inet_ntoa(detail.currentlocaladdr.sin_addr) << ":" << ntohs(detail.currentlocaladdr.sin_port) << std::endl;
|
||||||
std::cerr << "p3disc::sendOwnDetails() detail.currentserveraddr.sin_addr : " << inet_ntoa(detail.currentserveraddr.sin_addr) << ":" << ntohs(detail.currentlocaladdr.sin_port) << std::endl;
|
std::cerr << "p3disc::sendOwnDetails() detail.currentserveraddr.sin_addr : " << inet_ntoa(detail.currentserveraddr.sin_addr) << ":" << ntohs(detail.currentlocaladdr.sin_port) << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
di -> ipAddressList.clear();
|
||||||
|
for ( std::list<IpAddressTimed>::iterator ipListIt = detail.getIpAddressList().begin(); ipListIt!= detail.getIpAddressList().end(); ipListIt++) {
|
||||||
|
IpAddressTimed ipAddress;
|
||||||
|
ipAddress.ipAddr = ipListIt->ipAddr;
|
||||||
|
ipAddress.seenTime = ipListIt->seenTime;
|
||||||
|
di -> ipAddressList.push_back(ipAddress);
|
||||||
|
}
|
||||||
|
|
||||||
di -> ipAddressList = std::list<IpAddressTimed> (detail.getIpAddressList()); //duplicate the list to build the item
|
|
||||||
di -> contact_tf = 0;
|
di -> contact_tf = 0;
|
||||||
|
|
||||||
/* construct disc flags */
|
/* construct disc flags */
|
||||||
@ -442,8 +448,14 @@ void p3disc::sendPeerDetails(std::string to, std::string about)
|
|||||||
di -> PeerId(to);
|
di -> PeerId(to);
|
||||||
di -> aboutId = about;
|
di -> aboutId = about;
|
||||||
|
|
||||||
// set the ip addresses.
|
// set the ip addresse list.
|
||||||
di -> ipAddressList = std::list<IpAddressTimed> (detail.getIpAddressList()); //duplicate the list to build the item
|
di -> ipAddressList.clear();
|
||||||
|
for ( std::list<IpAddressTimed>::iterator ipListIt = detail.getIpAddressList().begin(); ipListIt!= detail.getIpAddressList().end(); ipListIt++) {
|
||||||
|
IpAddressTimed ipAddress;
|
||||||
|
ipAddress.ipAddr = ipListIt->ipAddr;
|
||||||
|
ipAddress.seenTime = ipListIt->seenTime;
|
||||||
|
di -> ipAddressList.push_back(ipAddress);
|
||||||
|
}
|
||||||
di -> currentladdr = detail.currentlocaladdr;
|
di -> currentladdr = detail.currentlocaladdr;
|
||||||
di -> currentsaddr = detail.currentserveraddr;
|
di -> currentsaddr = detail.currentserveraddr;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user