diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-12-07 10:23:57 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-12-07 10:23:57 -0600 |
commit | f105a0ef384091ec2227940533bd338e0cefbdbb (patch) | |
tree | 241cd22aefa30873f51629be5d7d933cee013bac /src/p2p/net_node.h | |
parent | Merge pull request #7065 (diff) | |
parent | p2p: fix race condition accessing a deleted context (diff) | |
download | monero-f105a0ef384091ec2227940533bd338e0cefbdbb.tar.xz |
Merge pull request #7071
21b3ff2 p2p: fix race condition accessing a deleted context (moneromooo-monero)
Diffstat (limited to 'src/p2p/net_node.h')
-rw-r--r-- | src/p2p/net_node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/net_node.h b/src/p2p/net_node.h index 87fec9994..709811b6a 100644 --- a/src/p2p/net_node.h +++ b/src/p2p/net_node.h @@ -287,7 +287,7 @@ namespace nodetool uint32_t get_max_out_public_peers() const; void change_max_in_public_peers(size_t count); uint32_t get_max_in_public_peers() const; - virtual bool block_host(const epee::net_utils::network_address &adress, time_t seconds = P2P_IP_BLOCKTIME); + virtual bool block_host(epee::net_utils::network_address address, time_t seconds = P2P_IP_BLOCKTIME); virtual bool unblock_host(const epee::net_utils::network_address &address); virtual bool block_subnet(const epee::net_utils::ipv4_network_subnet &subnet, time_t seconds = P2P_IP_BLOCKTIME); virtual bool unblock_subnet(const epee::net_utils::ipv4_network_subnet &subnet); |