diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-08-11 09:30:23 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-08-11 09:30:23 -0500 |
| commit | 260606414aeccec84ff9b381d2a20b7e34f4bdb4 (patch) | |
| tree | 000e9e9d1b6a9ce1aacf713c244c916af9cc8c48 | |
| parent | 014b03781ee1bd8e203714f4b1f9cc886398b0ee (diff) | |
| download | slskd-260606414aeccec84ff9b381d2a20b7e34f4bdb4.tar.gz | |
exclude with both - and !
| -rw-r--r-- | src/slskd/Application/SharedFileCache.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Application/SharedFileCache.cs b/src/slskd/Application/SharedFileCache.cs index 798fd9d0..558cf46b 100644 --- a/src/slskd/Application/SharedFileCache.cs +++ b/src/slskd/Application/SharedFileCache.cs @@ -130,7 +130,7 @@ namespace slskd sw.Start(); var configuredShares = OptionsMonitor.CurrentValue.Directories.Shared.ToList(); // copy it so it can't change as we scan - var shares = configuredShares.Where(s => !s.StartsWith('-')); + var shares = configuredShares.Where(s => !s.StartsWith('!') && !s.StartsWith('-')); var exclusions = configuredShares.Except(shares).Select(s => s[1..]); var masks = new Dictionary<string, string>(shares |
