From e7ed15d5f1efe7451cf075fc570818fb9a69ab97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?=
 <francois-simon.fauteux-chapleau@savoirfairelinux.com>
Date: Wed, 26 Feb 2025 17:51:09 -0500
Subject: [PATCH] dsh: set TURN settings in ConnectionManager config

The settings (host, username, password, realm) required to use TURN with
dsh were passed to the Dsh constructor but not set in the
ConnectionManger config.

GitLab: #634
Change-Id: Ib6619265fda1d20be83032f83798ea92d13616fc
---
 tools/dsh/dsh.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/dsh/dsh.cpp b/tools/dsh/dsh.cpp
index 5b13fc8..c1e3f79 100644
--- a/tools/dsh/dsh.cpp
+++ b/tools/dsh/dsh.cpp
@@ -106,7 +106,11 @@ dhtnet::Dsh::Dsh(dht::crypto::Identity identity,
                                           logger,
                                           certStore,
                                           ioContext,
-                                          iceFactory);
+                                          iceFactory,
+                                          turn_host,
+                                          turn_user,
+                                          turn_pass,
+                                          turn_realm);
     // create a connection manager
     connectionManager = std::make_unique<ConnectionManager>(std::move(config));
 
-- 
GitLab