aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Core/API')
-rw-r--r--src/slskd/Core/API/Controllers/ServerController.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slskd/Core/API/Controllers/ServerController.cs b/src/slskd/Core/API/Controllers/ServerController.cs
index 983fd0a0..0caded00 100644
--- a/src/slskd/Core/API/Controllers/ServerController.cs
+++ b/src/slskd/Core/API/Controllers/ServerController.cs
@@ -67,7 +67,13 @@ namespace slskd.Core.API
if (!Client.State.HasFlag(SoulseekClientStates.Connected))
{
- await Client.ConnectAsync(OptionsSnapshot.Value.Soulseek.Username, OptionsSnapshot.Value.Soulseek.Password);
+ var opt = OptionsSnapshot.Value.Soulseek;
+
+ await Client.ConnectAsync(
+ address: opt.Address,
+ port: opt.Port,
+ username: opt.Username,
+ password: opt.Password);
}
return Ok();