diff options
author | Jadi <jadijadi@gmail.com> | 2024-05-23 17:41:45 +0330 |
---|---|---|
committer | Jadi <jadijadi@gmail.com> | 2024-08-02 10:40:33 +0330 |
commit | a5d7aff867a3df9ac77664deed03e930e2636db0 (patch) | |
tree | 44b05ed790f4a419e06787d7603febd46027109c /src/node | |
parent | 058af75874ffa2b4064e3d6d30cc50f0ec754ba8 (diff) |
net: Providing an interface for mapLocalHost
Contributes to #564 by providing an interface for mapLocalHost
through net -> node interface -> clientModel. Later this value can be
read by GUI to show the local addresses.
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/interfaces.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 216f44ab9e..1610d7c3d0 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -281,6 +281,13 @@ public: } return false; } + std::map<CNetAddr, LocalServiceInfo> getNetLocalAddresses() override + { + if (m_context->connman) + return m_context->connman->getNetLocalAddresses(); + else + return {}; + } int getNumBlocks() override { LOCK(::cs_main); |