aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-12-09 19:08:30 -0600
committerGitHub <noreply@github.com>2025-12-09 19:08:30 -0600
commitc06e61b83bbc857b9b648792846a03900cb4b705 (patch)
tree55e675412db1eafc781a5f3da0eb8533de70ae68 /src/slskd/Core
parenta55adb37e3c5bc2d249a6a8cb23873c0391f4580 (diff)
parentae1c3c7aee14e7f7fe1e6470cf9353c5f3731d24 (diff)
downloadslskd-c06e61b83bbc857b9b648792846a03900cb4b705.tar.gz
Merge pull request #1555 from x0vi/feature/configurable-ip-address
feature: configurable ip address
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 76dcd45c..d3e302a5 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1839,6 +1839,16 @@ namespace slskd
public int Port { get; init; } = 5030;
/// <summary>
+ /// Gets the IP address on which to listen for HTTP requests.
+ /// </summary>
+ [Argument(default, "http-listen-ip-address")]
+ [EnvironmentVariable("HTTP_LISTEN_IP_ADDRESS")]
+ [Description("IP address on which to listen for HTTP requests")]
+ [IPAddress]
+ [RequiresRestart]
+ public string ListenIpAddress { get; init; } = "0.0.0.0";
+
+ /// <summary>
/// Gets the HTTP listen unix domain socket (UDS) path.
/// </summary>
[Argument(default, "http-socket")]
@@ -2038,7 +2048,17 @@ namespace slskd
[Range(1, 65535)]
[RequiresRestart]
public int Port { get; init; } = 5031;
-
+
+ /// <summary>
+ /// Gets the IP address on which to listen for HTTPS requests.
+ /// </summary>
+ [Argument(default, "https-listen-ip-address")]
+ [EnvironmentVariable("HTTPS_LISTEN_IP_ADDRESS")]
+ [Description("IP address on which to listen for HTTPS requests")]
+ [IPAddress]
+ [RequiresRestart]
+ public string ListenIpAddress { get; init; } = "0.0.0.0";
+
/// <summary>
/// Gets a value indicating whether HTTP requests should be redirected to HTTPS.
/// </summary>