mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 15:15:15 -04:00
Fixed check if address has changed - was preventing resetting of local port.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7619 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c2404fcea7
commit
cdfbe90682
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ bool p3NetMgrIMPL::setLocalAddress(const struct sockaddr_storage &addr)
|
|||
bool changed = false;
|
||||
{
|
||||
RsStackMutex stack(mNetMtx); /****** STACK LOCK MUTEX *******/
|
||||
if (sockaddr_storage_same(mLocalAddr, addr))
|
||||
if (!sockaddr_storage_same(mLocalAddr, addr))
|
||||
{
|
||||
changed = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue