diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-06-02 15:06:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-02 15:06:41 -0500 |
| commit | 6fd5e36e367c7d8fbeac7662dacb24f8497931c2 (patch) | |
| tree | 1b6c017ee955a0081a92e4934540041601c1596e /src/slskd/Core | |
| parent | a783e181982dd8c435bb51345a8528a65a4304ac (diff) | |
| parent | ec31fd53e8cf91adbeae6bb20958e9c8ef85e56c (diff) | |
| download | slskd-6fd5e36e367c7d8fbeac7662dacb24f8497931c2.tar.gz | |
Merge branch 'master' into master
Diffstat (limited to 'src/slskd/Core')
| -rw-r--r-- | src/slskd/Core/Blacklist.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Core/Metrics.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Core/Options.cs | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/slskd/Core/Blacklist.cs b/src/slskd/Core/Blacklist.cs index 76f0b37f..84e6feb6 100644 --- a/src/slskd/Core/Blacklist.cs +++ b/src/slskd/Core/Blacklist.cs @@ -179,7 +179,7 @@ public class Blacklist { if (format == BlacklistFormat.AutoDetect) { - Log.Debug("Attempting to auto-detect blacklist fomat from contents..."); + Log.Debug("Attempting to auto-detect blacklist format from contents..."); format = await DetectFormat(filename); // FormatException if unsuccessful Log.Debug("Detected blacklist format {Format}", format); } @@ -294,7 +294,7 @@ public class Blacklist } /// <summary> - /// Returns a value indicating whether the specified <paramref name="ip"/> is contained witin the blacklist. + /// Returns a value indicating whether the specified <paramref name="ip"/> is contained within the blacklist. /// </summary> /// <param name="ip">The IP address to check.</param> /// <returns>A value indicating whether the specified IP is contained within the blacklist.</returns> @@ -310,7 +310,7 @@ public class Blacklist return false; } - // conver the entire IP to a uint + // convert the entire IP to a uint var ipAsUint32 = ToUint32(ip); // check the list for this octet sequentially until the first match diff --git a/src/slskd/Core/Metrics.cs b/src/slskd/Core/Metrics.cs index b11d9d8f..7e0b0f6e 100644 --- a/src/slskd/Core/Metrics.cs +++ b/src/slskd/Core/Metrics.cs @@ -123,7 +123,7 @@ namespace slskd public static Gauge BranchLevel { get; } = Prometheus.Metrics.CreateGauge("slskd_dnet_branch_level", "Current distributed branch level"); /// <summary> - /// Gets a gauge representing the most recent average time tekn to broadcast incoming search requests to connected children. + /// Gets a gauge representing the most recent average time taken to broadcast incoming search requests to connected children. /// </summary> public static Gauge CurrentBroadcastLatency { get; } = Prometheus.Metrics.CreateGauge("slskd_dnet_broadcast_latency_current", "The average time taken to broadcast incoming search requests to connected children"); diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 1b049ae1..05174031 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -744,7 +744,7 @@ namespace slskd bool IsBlankPath(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])$"); directories?.Where(share => IsBlankPath(share)).ToList() - .ForEach(blank => results.Add(new ValidationResult($"Share {blank} doees not specify a path"))); + .ForEach(blank => results.Add(new ValidationResult($"Share {blank} does not specify a path"))); bool IsRootMount(string share) => Regex.IsMatch(share.LocalizePath(), @"^(!|-){0,1}(\[.*\])/$"); directories?.Where(share => IsRootMount(share)).ToList() @@ -1289,11 +1289,11 @@ namespace slskd /// <summary> /// Gets a value indicating whether to write logs to disk. /// </summary> - [Argument(default, "no-disk-logger")] - [EnvironmentVariable("NO_DISK_LOGGER")] - [Description("disable logging to disk")] + [Argument(default, "disk-logger")] + [EnvironmentVariable("DISK_LOGGER")] + [Description("enable logging to disk")] [RequiresRestart] - public bool Disk { get; init; } = true; + public bool Disk { get; init; } = false; } /// <summary> |
