aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-26 23:33:07 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-26 23:33:07 +0200
commitfd1faac2e0972f06f82fc7ee2039ff243ff2961f (patch)
tree16d420256698b953684158879a540aec1866a529
parentMerge pull request #2339 (diff)
parenthttp_client: add getters for host and port (diff)
downloadmonero-fd1faac2e0972f06f82fc7ee2039ff243ff2961f.tar.xz
Merge pull request #2350
fa65da25 http_client: add getters for host and port (moneromooo-monero)
-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{};