From daa82fc5eb1fedfb2c38c53bfd95aabd62204667 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 20 Mar 2021 10:09:37 -0400 Subject: [PATCH] fixed build error --- i2pd | 2 +- routerinfo.cpp | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/i2pd b/i2pd index 3925540..ac10f30 160000 --- a/i2pd +++ b/i2pd @@ -1 +1 @@ -Subproject commit 3925540517d31d62d1ad89158e2a075c9d539463 +Subproject commit ac10f3055d648c8718c668ae772d4f94c0145503 diff --git a/routerinfo.cpp b/routerinfo.cpp index e6c03eb..aeb51f6 100644 --- a/routerinfo.cpp +++ b/routerinfo.cpp @@ -75,9 +75,15 @@ int main(int argc, char * argv[]) i2p::data::RouterInfo ri(fname); std::vector > addrs; - auto a = ri.GetNTCP2Address(!ipv6); + auto a = ri.GetPublishedNTCP2V4Address(); if(a) addrs.push_back(a); + if (ipv6) + { + a = ri.GetPublishedNTCP2V6Address(); + if(a) + addrs.push_back(a); + } a = ri.GetSSUAddress(!ipv6); if(a) addrs.push_back(a);