mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 02:44:20 -05:00
finally got the address list bug : you've got to duplicate the list in order to send the message
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1917 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
cc6b480156
commit
c90714c5bd
@ -366,7 +366,8 @@ 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.currentserveraddr.sin_addr : " << inet_ntoa(detail.currentserveraddr.sin_addr) << ":" << ntohs(detail.currentlocaladdr.sin_port) << std::endl;
|
||||
#endif
|
||||
di -> ipAddressList = detail.getIpAddressList();
|
||||
|
||||
di -> ipAddressList = std::list<IpAddressTimed> (detail.getIpAddressList()); //duplicate the list to build the item
|
||||
di -> contact_tf = 0;
|
||||
|
||||
/* construct disc flags */
|
||||
@ -442,7 +443,7 @@ void p3disc::sendPeerDetails(std::string to, std::string about)
|
||||
di -> aboutId = about;
|
||||
|
||||
// set the ip addresses.
|
||||
di -> ipAddressList = detail.getIpAddressList();
|
||||
di -> ipAddressList = std::list<IpAddressTimed> (detail.getIpAddressList()); //duplicate the list to build the item
|
||||
di -> currentladdr = detail.currentlocaladdr;
|
||||
di -> currentsaddr = detail.currentserveraddr;
|
||||
|
||||
@ -644,8 +645,7 @@ void p3disc::recvPeerOwnMsg(RsDiscOwnItem *item)
|
||||
flags |= RS_NET_FLAGS_STABLE_UDP;
|
||||
}
|
||||
|
||||
std::list<IpAddressTimed> emptyAddressList; //no address list for own disc message
|
||||
mConnMgr->peerStatus(item->PeerId(), item->laddr, item->saddr, emptyAddressList,
|
||||
mConnMgr->peerStatus(item->PeerId(), item->laddr, item->saddr, item->ipAddressList,
|
||||
type, flags, RS_CB_PERSON);
|
||||
|
||||
/* also add as potential stun buddy */
|
||||
|
Loading…
Reference in New Issue
Block a user