mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
cbd0b216a4
commit
9fbf95bf5d
@ -700,7 +700,7 @@ bool UdpSorter::locked_checkExternalAddress()
|
|||||||
std::list<TouStunPeer>::iterator p2;
|
std::list<TouStunPeer>::iterator p2;
|
||||||
for(it = mStunList.begin(); it != mStunList.end(); it++)
|
for(it = mStunList.begin(); it != mStunList.end(); it++)
|
||||||
{
|
{
|
||||||
if (it->response)
|
if (it->response && isExternalNet(&(it->eaddr.sin_addr)))
|
||||||
{
|
{
|
||||||
if (!found1)
|
if (!found1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user