aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/ConnectionWatchdog.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-11-19 11:14:19 -0600
committerGitHub <noreply@github.com>2023-11-19 11:14:19 -0600
commit215c7d8607b2e60256e984108372fcebd6457546 (patch)
tree698e7f51ac7505ceceb5da9aa475d6d559a1565d /src/slskd/Core/ConnectionWatchdog.cs
parent6280ab0533d8aeff9767ae48af7f01ef483b9b14 (diff)
parentbc835a977728b1cafcee41a94440c17c397f3f3a (diff)
downloadslskd-215c7d8607b2e60256e984108372fcebd6457546.tar.gz
Merge pull request #1001 from slskd/address
Add options for the Soulseek server address and port
Diffstat (limited to 'src/slskd/Core/ConnectionWatchdog.cs')
-rw-r--r--src/slskd/Core/ConnectionWatchdog.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/slskd/Core/ConnectionWatchdog.cs b/src/slskd/Core/ConnectionWatchdog.cs
index 6a48c0e4..19e2d47c 100644
--- a/src/slskd/Core/ConnectionWatchdog.cs
+++ b/src/slskd/Core/ConnectionWatchdog.cs
@@ -165,7 +165,14 @@ namespace slskd
// reconnect with the latest configuration values we have for username and password, instead of the
// options that were captured at startup. if a user has updated these values prior to the disconnect,
// the changes will take effect now.
- await Client.ConnectAsync(Options.CurrentValue.Soulseek.Username, Options.CurrentValue.Soulseek.Password);
+ var opt = Options.CurrentValue.Soulseek;
+
+ await Client.ConnectAsync(
+ address: opt.Address,
+ port: opt.Port,
+ username: opt.Username,
+ password: opt.Password);
+
break;
}
catch (Exception ex)