diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-10-06 22:49:45 +0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-10-06 22:49:45 +0400 |
commit | 3bcce5be8687fc99d5faa5c71e7a07afb7cdb39d (patch) | |
tree | dd14a8fb911acf97900548c7c1965c2d6a46a331 /tests/unit_tests/ban.cpp | |
parent | Merge pull request #2518 (diff) | |
parent | Upgrades to epee::net_utils::network_address (diff) | |
download | monero-3bcce5be8687fc99d5faa5c71e7a07afb7cdb39d.tar.xz |
Merge pull request #2345
8b006877 Upgrades to epee::net_utils::network_address - internal nullptr checks - prevent modifications to network_address (shallow copy issues) - automagically works with any type containing interface functions - removed fnv1a hashing - ipv4_network_address now flattened with no base class (Lee Clagett)
Diffstat (limited to 'tests/unit_tests/ban.cpp')
-rw-r--r-- | tests/unit_tests/ban.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/ban.cpp b/tests/unit_tests/ban.cpp index b8d57452e..d15716a42 100644 --- a/tests/unit_tests/ban.cpp +++ b/tests/unit_tests/ban.cpp @@ -33,7 +33,7 @@ #include "p2p/net_node.h" #include "cryptonote_protocol/cryptonote_protocol_handler.h" -#define MAKE_IPV4_ADDRESS(a,b,c,d) new epee::net_utils::ipv4_network_address(MAKE_IP(a,b,c,d),0) +#define MAKE_IPV4_ADDRESS(a,b,c,d) epee::net_utils::ipv4_network_address{MAKE_IP(a,b,c,d),0} namespace cryptonote { class blockchain_storage; |