From 73cd5b25b901e17d24bd2ebeb7fe334f6092d3d8 Mon Sep 17 00:00:00 2001 From: Cristian Mircea Messel Date: Mon, 2 Oct 2017 17:59:32 +0300 Subject: [gui] Add proxy icon in statusbar --- src/qt/clientmodel.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/qt/clientmodel.cpp') diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 37fd06ccc..a623771aa 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -268,3 +269,13 @@ void ClientModel::unsubscribeFromCoreSignals() m_handler_notify_block_tip->disconnect(); m_handler_notify_header_tip->disconnect(); } + +bool ClientModel::getProxyInfo(std::string& ip_port) const +{ + proxyType ipv4, ipv6; + if (m_node.getProxy((Network) 1, ipv4) && m_node.getProxy((Network) 2, ipv6)) { + ip_port = ipv4.proxy.ToStringIPPort(); + return true; + } + return false; +} -- cgit v1.2.3