From 7c6d8c2a71f2eea94af851b227f4da7c26e49d68 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 11 Dec 2023 21:50:40 -0600 Subject: add a ListenAddress option --- src/slskd/Core/Options.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 1d4742da..49f20ea4 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -1294,6 +1294,15 @@ namespace slskd [Description("user description for the Soulseek network")] public string Description { get; init; } = "A slskd user. https://github.com/slskd/slskd"; + /// + /// Gets the local IP address on which to listen for incoming connections. + /// + [Argument(default, "slsk-listen-address")] + [EnvironmentVariable("SLSK_LISTEN_ADDRESS")] + [Description("local IP address on which to listen for incoming connections")] + [IPAddress] + public string ListenAddress { get; init; } = "0.0.0.0"; + /// /// Gets the port on which to listen for incoming connections. /// -- cgit v1.2.3