mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-20 21:34:31 -05:00
store exaddr from upnp to stun
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1763 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fcaae207ef
commit
81e1978a83
@ -649,8 +649,7 @@ void p3ConnectMgr::netUpnpCheck()
|
||||
struct sockaddr_in extAddr;
|
||||
int upnpState = netAssistFirewallActive();
|
||||
|
||||
if ((upnpState < 0) ||
|
||||
((upnpState == 0) && (delta > MAX_UPNP_INIT)))
|
||||
if ((upnpState == 0) && (delta > MAX_UPNP_INIT))
|
||||
{
|
||||
#ifdef CONN_DEBUG
|
||||
std::cerr << "p3ConnectMgr::netUpnpCheck() ";
|
||||
@ -1062,12 +1061,13 @@ bool p3ConnectMgr::stunCheck()
|
||||
else
|
||||
{
|
||||
#ifdef CONN_DEBUG
|
||||
std::cerr << "Stun : No Ext Address. Checking upnp est address." << std::endl;
|
||||
std::cerr << "Stun : No Ext Address. Checking upnp ext address." << std::endl;
|
||||
#endif
|
||||
struct sockaddr_in extAddr;
|
||||
bool upnpExtAdress = netAssistExtAddress(extAddr);
|
||||
if (upnpExtAdress) {
|
||||
//don't do a reset
|
||||
mStunExtAddr = extAddr;
|
||||
#ifdef CONN_DEBUG
|
||||
std::cerr << "Found upnp Ext Address. don't do a reset." << std::endl;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user