diff options
author | Cristian Mircea Messel <mess110@gmail.com> | 2017-10-02 17:59:32 +0300 |
---|---|---|
committer | Cristian Mircea Messel <mess110@gmail.com> | 2018-05-15 23:23:56 +0300 |
commit | 73cd5b25b901e17d24bd2ebeb7fe334f6092d3d8 (patch) | |
tree | 6e7c9ad6b3e756d21d13a13ddf81496b946b4fa4 /src/qt/clientmodel.cpp | |
parent | 13da2899ae42d48547e5cb491ea6aba4882b3306 (diff) |
[gui] Add proxy icon in statusbar
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r-- | src/qt/clientmodel.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 37fd06ccc9..a623771aa0 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -17,6 +17,7 @@ #include <interfaces/node.h> #include <validation.h> #include <net.h> +#include <netbase.h> #include <txmempool.h> #include <ui_interface.h> #include <util.h> @@ -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; +} |