diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-09-21 08:14:46 -0500 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-09-21 08:14:46 -0500 |
| commit | 7387d568548af0898d9fd2b716d3bb16b6d9be2b (patch) | |
| tree | 0c8fa0c142d89432b6e28e9054e9463c00ac5af4 /src | |
| parent | ae6597fd837ee4129299b5fc0ed2c203ec320118 (diff) | |
| download | slskd-7387d568548af0898d9fd2b716d3bb16b6d9be2b.tar.gz | |
add JsonIgnore to sensitive option fields
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Options.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs index 01eeacd7..b1e1a9a9 100644 --- a/src/slskd/Options.cs +++ b/src/slskd/Options.cs @@ -26,6 +26,7 @@ namespace slskd using System.Diagnostics; using System.IO; using System.Linq; + using System.Text.Json.Serialization; using System.Text.RegularExpressions; using FluentFTP; using slskd.Configuration; @@ -442,6 +443,7 @@ namespace slskd [EnvironmentVariable("SLSK_PASSWORD")] [Description("password for the Soulseek network")] [RequiresReconnect] + [JsonIgnore] public string Password { get; private set; } = null; /// <summary> @@ -592,6 +594,7 @@ namespace slskd [EnvironmentVariable("SLSK_PROXY_PASSWORD")] [Description("connection proxy password")] [StringLength(255, MinimumLength = 1)] + [JsonIgnore] public string Password { get; private set; } /// <summary> @@ -719,6 +722,7 @@ namespace slskd [EnvironmentVariable("PASSWORD")] [Description("password for web UI")] [StringLength(255, MinimumLength = 1)] + [JsonIgnore] public string Password { get; private set; } = Program.AppName; /// <summary> @@ -809,6 +813,7 @@ namespace slskd [EnvironmentVariable("HTTPS_CERT_PASSWORD")] [Description("X509 certificate password")] [RequiresRestart] + [JsonIgnore] public string Password { get; private set; } } } @@ -892,6 +897,7 @@ namespace slskd [Argument(default, "ftp-password")] [EnvironmentVariable("FTP_PASSWORD")] [Description("FTP password")] + [JsonIgnore] public string Password { get; private set; } /// <summary> |
