Skip to content

Commit c9ba3f8

Browse files
committed
[netaddress] Make OnionToString public
1 parent 7ef730c commit c9ba3f8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/netaddress.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static std::string IPv6ToString(Span<const uint8_t> a, uint32_t scope_id)
588588
return r;
589589
}
590590

591-
static std::string OnionToString(Span<const uint8_t> addr)
591+
std::string OnionToString(Span<const uint8_t> addr)
592592
{
593593
uint8_t checksum[torv3::CHECKSUM_LEN];
594594
torv3::Checksum(addr, checksum);

src/netaddress.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ static constexpr size_t ADDR_INTERNAL_SIZE = 10;
111111
/// SAM 3.1 and earlier do not support specifying ports and force the port to 0.
112112
static constexpr uint16_t I2P_SAM31_PORT{0};
113113

114+
std::string OnionToString(Span<const uint8_t> addr);
115+
114116
/**
115117
* Network address.
116118
*/

0 commit comments

Comments
 (0)