mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-19 11:54:22 -04:00
Corrected the 127.0.0.1 persistency bug
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1104 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9b59f89cdf
commit
0cd24c8f21
1 changed files with 5 additions and 1 deletions
|
@ -2795,7 +2795,11 @@ bool p3ConnectMgr::checkNetAddress()
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ((*it) == inet_ntoa(ownState.localaddr.sin_addr))
|
// Ive added the 'isNotLoopbackNet' to prevent re-using the lo address if this was saved in the
|
||||||
|
// configuration. In such a case, lo should only be chosen from getPreferredInterface as a last resort
|
||||||
|
// fallback solution.
|
||||||
|
//
|
||||||
|
if ((!isLoopbackNet(&ownState.localaddr.sin_addr)) && (*it) == inet_ntoa(ownState.localaddr.sin_addr))
|
||||||
{
|
{
|
||||||
#ifdef CONN_DEBUG
|
#ifdef CONN_DEBUG
|
||||||
std::cerr << "p3ConnectMgr::checkNetAddress() Matches Existing Address! FOUND = true";
|
std::cerr << "p3ConnectMgr::checkNetAddress() Matches Existing Address! FOUND = true";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue