diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2021-07-07 00:54:25 +0000 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2024-02-28 10:05:56 -0300 |
commit | 9133fd69a5cc9a0ab1a06a60d09f1b7e1039018e (patch) | |
tree | 96d7b8b6d90f0da7096fb2a7014b0b90501e73a0 /src/net.h | |
parent | 2863d7dddb62d987b3e1c3b8bfad7083f0f774b2 (diff) |
net: Move `NetPermissionFlags::Implicit` verification to `AddWhitelistPermissionFlags`
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -53,11 +53,6 @@ class CNode; class CScheduler; struct bilingual_str; -/** Default for -whitelistrelay. */ -static const bool DEFAULT_WHITELISTRELAY = true; -/** Default for -whitelistforcerelay. */ -static const bool DEFAULT_WHITELISTFORCERELAY = false; - /** Time after which to disconnect, after waiting for a ping response (or inactivity). */ static constexpr std::chrono::minutes TIMEOUT_INTERVAL{20}; /** Run the feeler connection loop once every 2 minutes. **/ @@ -1343,7 +1338,7 @@ private: bool AttemptToEvictConnection(); CNode* ConnectNode(CAddress addrConnect, const char *pszDest, bool fCountFailure, ConnectionType conn_type, bool use_v2transport) EXCLUSIVE_LOCKS_REQUIRED(!m_unused_i2p_sessions_mutex); - void AddWhitelistPermissionFlags(NetPermissionFlags& flags, const CNetAddr &addr) const; + void AddWhitelistPermissionFlags(NetPermissionFlags& flags, const CNetAddr &addr, const std::vector<NetWhitelistPermissions>& ranges) const; void DeleteNode(CNode* pnode); |