aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-12-12 09:14:13 -0600
committerJP Dillingham <jp@dillingham.me>2023-12-12 09:14:13 -0600
commit8f820e01591d0197945a13b1c1e1543613c56a2c (patch)
treed8a890aacaf9a6330433067d7207ba58c7a71d12 /src
parent795bbd32717322080ac05c2c887f8ea66731038d (diff)
downloadslskd-8f820e01591d0197945a13b1c1e1543613c56a2c.tar.gz
include listen ip when configuring/reconfiguring
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index b6d11914..04c6b7d6 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -361,6 +361,7 @@ namespace slskd
writeBufferSize: OptionsAtStartup.Soulseek.Connection.Buffer.Transfer);
var patch = new SoulseekClientOptionsPatch(
+ listenIPAddress: IPAddress.Parse(OptionsAtStartup.Soulseek.ListenIPAddress),
listenPort: OptionsAtStartup.Soulseek.ListenPort,
enableListener: true,
userEndPointCache: new UserEndPointCache(),
@@ -386,7 +387,7 @@ namespace slskd
await Client.ReconfigureOptionsAsync(patch);
Log.Debug("Client configured");
- Log.Information("Listening for incoming connections on port {Port}", OptionsAtStartup.Soulseek.ListenPort);
+ Log.Information("Listening for incoming connections on {IP:Port}", OptionsAtStartup.Soulseek.ListenIPAddress, OptionsAtStartup.Soulseek.ListenPort);
if (OptionsAtStartup.Soulseek.Connection.Proxy.Enabled)
{
@@ -1049,6 +1050,7 @@ namespace slskd
}
var patch = new SoulseekClientOptionsPatch(
+ listenIPAddress: old.ListenIPAddress == update.ListenIPAddress ? null : IPAddress.Parse(update.ListenIPAddress),
listenPort: old.ListenPort == update.ListenPort ? null : update.ListenPort,
enableDistributedNetwork: old.DistributedNetwork.Disabled == update.DistributedNetwork.Disabled ? null : !update.DistributedNetwork.Disabled,
distributedChildLimit: old.DistributedNetwork.ChildLimit == update.DistributedNetwork.ChildLimit ? null : update.DistributedNetwork.ChildLimit,