From 90b4c989c766cba6d5f6f35e9c46216edfd5ee60 Mon Sep 17 00:00:00 2001 From: csoler Date: Thu, 4 Jun 2015 18:06:30 +0000 Subject: [PATCH] added auto-accept of loopback address git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8372 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/services/p3banlist.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libretroshare/src/services/p3banlist.cc b/libretroshare/src/services/p3banlist.cc index fe1ad5e17..84443b50f 100644 --- a/libretroshare/src/services/p3banlist.cc +++ b/libretroshare/src/services/p3banlist.cc @@ -267,6 +267,9 @@ bool p3BanList::isAddressAccepted(const sockaddr_storage &addr, uint32_t checkin if(check_result != NULL) *check_result = RSBANLIST_CHECK_RESULT_NOCHECK ; + if(sockaddr_storage_isLoopbackNet(addr)) + return true ; + if(!mIPFilteringEnabled) return true ;