mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 00:07:09 -05:00
added auto-accept of loopback address
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8372 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3dc0da6e2c
commit
90b4c989c7
@ -267,6 +267,9 @@ bool p3BanList::isAddressAccepted(const sockaddr_storage &addr, uint32_t checkin
|
|||||||
if(check_result != NULL)
|
if(check_result != NULL)
|
||||||
*check_result = RSBANLIST_CHECK_RESULT_NOCHECK ;
|
*check_result = RSBANLIST_CHECK_RESULT_NOCHECK ;
|
||||||
|
|
||||||
|
if(sockaddr_storage_isLoopbackNet(addr))
|
||||||
|
return true ;
|
||||||
|
|
||||||
if(!mIPFilteringEnabled)
|
if(!mIPFilteringEnabled)
|
||||||
return true ;
|
return true ;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user