aboutsummaryrefslogtreecommitdiff
path: root/src/netaddress.cpp
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-08-07 19:55:51 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-08-25 18:52:51 +0200
commit2bc207190e6f1818b04c9336f6e0d625b2a2a0ba (patch)
tree5fa9684143f5f2e0fef4ef8b53444dcb3c262e9e /src/netaddress.cpp
parent8d6224fefe015c2022d00a79a4549464bd79cf2f (diff)
util: make EncodeBase32 consume Spans
Diffstat (limited to 'src/netaddress.cpp')
-rw-r--r--src/netaddress.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/netaddress.cpp b/src/netaddress.cpp
index cb874e5e31..8adfe38dc9 100644
--- a/src/netaddress.cpp
+++ b/src/netaddress.cpp
@@ -4,10 +4,11 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <netaddress.h>
+
#include <hash.h>
+#include <tinyformat.h>
#include <util/strencodings.h>
#include <util/asmap.h>
-#include <tinyformat.h>
#include <algorithm>
#include <array>
@@ -341,9 +342,9 @@ enum Network CNetAddr::GetNetwork() const
std::string CNetAddr::ToStringIP() const
{
if (IsTor())
- return EncodeBase32(m_addr.data(), m_addr.size()) + ".onion";
+ return EncodeBase32(m_addr) + ".onion";
if (IsInternal())
- return EncodeBase32(m_addr.data(), m_addr.size()) + ".internal";
+ return EncodeBase32(m_addr) + ".internal";
CService serv(*this, 0);
struct sockaddr_storage sockaddr;
socklen_t socklen = sizeof(sockaddr);