From ca01568824b7167a06b176c3042271fefb8e0eb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Mon, 20 May 2019 10:18:26 -0400
Subject: [PATCH] dhtrunner: add API to access PeerDiscovery instance

---
 include/opendht/dhtrunner.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/opendht/dhtrunner.h b/include/opendht/dhtrunner.h
index a7fa51b9..7bb6158c 100644
--- a/include/opendht/dhtrunner.h
+++ b/include/opendht/dhtrunner.h
@@ -424,6 +424,8 @@ public:
      */
     void join();
 
+    PeerDiscovery* getPeerDiscovery() { return peerDiscovery_.get(); };
+
     void setProxyServer(const std::string& proxy, const std::string& pushNodeId = "");
 
     /**
-- 
GitLab