fix a bug for own disc item and address list

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1897 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2009-12-17 22:22:27 +00:00
parent a12084d620
commit 039e41356c
2 changed files with 20 additions and 19 deletions

View file

@ -360,7 +360,7 @@ void p3disc::sendOwnDetails(std::string to)
di -> PeerId(to);
di -> laddr = detail.currentlocaladdr;
di -> saddr = detail.currentserveraddr;
di -> ipAddressList = detail.getIpAddressList();
//di -> ipAddressList = detail.getIpAddressList(); there is no private address list
di -> contact_tf = 0;
/* construct disc flags */
@ -631,7 +631,8 @@ void p3disc::recvPeerOwnMsg(RsDiscOwnItem *item)
flags |= RS_NET_FLAGS_STABLE_UDP;
}
mConnMgr->peerStatus(item->PeerId(), item->laddr, item->saddr, item->ipAddressList,
std::list<IpAddressTimed> emptyAddressList; //no address list for own disc message
mConnMgr->peerStatus(item->PeerId(), item->laddr, item->saddr, emptyAddressList,
type, flags, RS_CB_PERSON);
/* also add as potential stun buddy */