diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-22 21:52:57 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-22 21:52:57 -0500 |
| commit | c9b85e9f1280a4efa70c0401fdf3677eadefec4e (patch) | |
| tree | e17264c4b9913c6fbd5733f49d35284eceda31bf /src | |
| parent | edc2f0df06235178837d11b4a2916a144b5b7c30 (diff) | |
| download | slskd-c9b85e9f1280a4efa70c0401fdf3677eadefec4e.tar.gz | |
log warning at startup if dumpable is enabled
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Program.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index e236886b..cdfbbf33 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -509,6 +509,11 @@ namespace slskd Log.Information("Using application directory {AppDirectory}", AppDirectory); Log.Information("Using configuration file {ConfigurationFile}", ConfigurationFile); + if (OptionsAtStartup.Flags.Dumpable) + { + Log.Warning("Application memory dumps are ENABLED; this can expose sensitive information, including environment variables from the shell. Disable Flags.Dumpable to disable."); + } + if (OptionsAtStartup.Flags.NoConfigWatch) { Log.Warning("Configuration watch DISABLED; all configuration changes will require a restart to take effect"); |
