aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-22 12:00:21 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-25 23:28:07 +0100
commitfa65da25c9458f1abbac0344d198640445c1cc30 (patch)
tree16d420256698b953684158879a540aec1866a529
parentMerge pull request #2339 (diff)
downloadmonero-fa65da25c9458f1abbac0344d198640445c1cc30.tar.xz
http_client: add getters for host and port
-rw-r--r--contrib/epee/include/net/http_client.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/epee/include/net/http_client.h b/contrib/epee/include/net/http_client.h
index 67e63f7bf..8e099e2bc 100644
--- a/contrib/epee/include/net/http_client.h
+++ b/contrib/epee/include/net/http_client.h
@@ -293,6 +293,9 @@ using namespace std;
, m_lock()
{}
+ const std::string &get_host() const { return m_host_buff; };
+ const std::string &get_port() const { return m_port; };
+
bool set_server(const std::string& address, boost::optional<login> user)
{
http::url_content parsed{};