diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-12-13 14:36:09 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-12-13 14:36:09 -0600 |
| commit | fc1aecbe54b0077d0fde20f9f8e6350312344692 (patch) | |
| tree | 28550397469db709a5255cf724b0e186d212d477 /src/slskd/Core/Security/SecurityService.cs | |
| parent | 848262831fe6281d448afd3bdcf802bbc643fbd1 (diff) | |
| download | slskd-fc1aecbe54b0077d0fde20f9f8e6350312344692.tar.gz | |
tweak logging
Diffstat (limited to 'src/slskd/Core/Security/SecurityService.cs')
| -rw-r--r-- | src/slskd/Core/Security/SecurityService.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/slskd/Core/Security/SecurityService.cs b/src/slskd/Core/Security/SecurityService.cs index 8b3afa44..e98dd5eb 100644 --- a/src/slskd/Core/Security/SecurityService.cs +++ b/src/slskd/Core/Security/SecurityService.cs @@ -115,7 +115,7 @@ public class SecurityService .Select(cidr => IPAddressRange.Parse(cidr)) .Any(range => range.Contains(callerIpAddress))) { - throw new OutOfRangeException($"IP Address {callerIpAddress} not included in CIDR(s) for API key {record.Key}: {record.Value.Cidr}"); + throw new OutOfRangeException($"IP address {callerIpAddress} not included in CIDR range(s) for API key {record.Key}; allowed: {record.Value.Cidr}"); } return (record.Key, record.Value.Role.ToEnum<Role>()); |
