mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 14:41:04 -04:00
small fix to make setLocalAddress() and setExtAddress() also call mPeerMgr-UpdateOwnAddresses()
This commit is contained in:
parent
67cf8baf77
commit
d87de5121a
1 changed files with 4 additions and 6 deletions
|
@ -482,10 +482,6 @@ void p3NetMgrIMPL::netStatusTick()
|
||||||
std::cerr << "ExtAddr: " << sockaddr_storage_tostring(tmpip);
|
std::cerr << "ExtAddr: " << sockaddr_storage_tostring(tmpip);
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
#endif
|
#endif
|
||||||
/* XXX HACK TO FIX drbob: ALLOWING
|
|
||||||
* ExtAddrFinder -> ExtAddrStableOk = true
|
|
||||||
* (which it is not normally) */
|
|
||||||
|
|
||||||
setExtAddress(tmpip);
|
setExtAddress(tmpip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1152,6 +1148,7 @@ bool p3NetMgrIMPL::setLocalAddress(const struct sockaddr_storage &addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
mLocalAddr = addr;
|
mLocalAddr = addr;
|
||||||
|
mPeerMgr->UpdateOwnAddress(mLocalAddr, mExtAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed)
|
if (changed)
|
||||||
|
@ -1188,6 +1185,7 @@ bool p3NetMgrIMPL::setExtAddress(const struct sockaddr_storage &addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
mExtAddr = addr;
|
mExtAddr = addr;
|
||||||
|
mPeerMgr->UpdateOwnAddress(mLocalAddr, mExtAddr);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changed)
|
if (changed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue