Added Filter to Stun Results to ensure that we only get external addresses.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@583 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-06-07 11:22:01 +00:00
parent cbd0b216a4
commit 9fbf95bf5d

View File

@ -700,7 +700,7 @@ bool UdpSorter::locked_checkExternalAddress()
std::list<TouStunPeer>::iterator p2;
for(it = mStunList.begin(); it != mStunList.end(); it++)
{
if (it->response)
if (it->response && isExternalNet(&(it->eaddr.sin_addr)))
{
if (!found1)
{