From aa277469827fbd47ee77d2576d1a9f69865ce68c Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 22 Feb 2019 11:03:31 -0500 Subject: [PATCH] remove address string --- libi2pd/RouterInfo.cpp | 15 +-------------- libi2pd/RouterInfo.h | 1 - 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/libi2pd/RouterInfo.cpp b/libi2pd/RouterInfo.cpp index de7cd0be..ca357e45 100644 --- a/libi2pd/RouterInfo.cpp +++ b/libi2pd/RouterInfo.cpp @@ -208,20 +208,7 @@ namespace data { boost::system::error_code ecode; address->host = boost::asio::ip::address::from_string (value, ecode); - if (ecode) - { - if (address->transportStyle == eTransportNTCP) - { - supportedTransports |= eNTCPV4; // TODO: - address->addressString = value; - } - else - { - supportedTransports |= eSSUV4; // TODO: - address->addressString = value; - } - } - else + if (!ecode) { // add supported protocol if (address->host.is_v4 ()) diff --git a/libi2pd/RouterInfo.h b/libi2pd/RouterInfo.h index f66a73fa..c417c21d 100644 --- a/libi2pd/RouterInfo.h +++ b/libi2pd/RouterInfo.h @@ -102,7 +102,6 @@ namespace data { TransportStyle transportStyle; boost::asio::ip::address host; - std::string addressString; int port; uint64_t date; uint8_t cost;