aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Options.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index b1e1a9a9..cac154ee 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -310,7 +310,7 @@ namespace slskd
bool IsRoot((string Raw, string Mask, string Alias, string Path) share) => share.Path == "/" || share.Path == "\\" || Path.GetPathRoot(share.Path) == share.Path;
var digestedShared = Shared
- .Select(share => Digest(Path.TrimEndingDirectorySeparator(share)))
+ .Select(share => Digest(share.TrimEnd('/', '\\')))
.ToHashSet();
var roots = digestedShared.Where(share => IsRoot(share));