NodeExport: use SockAddr, move to separate header

This commit is contained in:
Adrien Béraud committed 2023-03-23 16:50:19 -04:00
1 parent 31af08feaa
commit 58bc772256
13 files changed
+83 -89

No files matched your search

+4 -2
View File
@@ -35,12 +35,14 @@
namespace dht {
static constexpr std::array<uint8_t, 12> MAPPED_IPV4_PREFIX {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}};
const char* version() {
return PACKAGE_VERSION;
}
const HexMap hex_map = {};
static constexpr std::array<uint8_t, 12> MAPPED_IPV4_PREFIX {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xff}};
std::pair<std::string, std::string>
splitPort(const std::string& s) {
if (s.empty())