mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-20 21:34:31 -05:00
send own ip address list with p3disc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1902 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
4a53fdc0a9
commit
fbec787877
@ -359,8 +359,12 @@ void p3disc::sendOwnDetails(std::string to)
|
||||
// Fill the message
|
||||
di -> PeerId(to);
|
||||
di -> laddr = detail.currentlocaladdr;
|
||||
di -> saddr = detail.currentserveraddr;
|
||||
//di -> ipAddressList = detail.getIpAddressList(); there is no private address list
|
||||
di -> saddr = detail.currentserveraddr;
|
||||
#ifdef P3DISC_DEBUG
|
||||
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 -> contact_tf = 0;
|
||||
|
||||
/* construct disc flags */
|
||||
@ -390,8 +394,12 @@ void p3disc::sendOwnDetails(std::string to)
|
||||
|
||||
di->discFlags |= P3DISC_FLAGS_OWN_DETAILS;
|
||||
|
||||
#ifdef P3DISC_DEBUG
|
||||
di->print(std::cerr, 5);
|
||||
#endif
|
||||
|
||||
/* send msg */
|
||||
sendItem(di);
|
||||
sendItem(di);
|
||||
}
|
||||
|
||||
/* (dest (to), source (cert)) */
|
||||
|
Loading…
Reference in New Issue
Block a user