mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02:00
cmd/cli: notice writing default config in local mode
This commit is contained in:
@@ -1075,6 +1075,9 @@ func readConfigFile(writeDefaultConfig, notice bool) bool {
|
||||
if err != nil {
|
||||
mainLog.Load().Fatal().Msgf("failed to get default config file path: %v", err)
|
||||
}
|
||||
if cdUID == "" && nextdns == "" {
|
||||
mainLog.Load().Notice().Msg("Generating controld default config: " + fp)
|
||||
}
|
||||
mainLog.Load().Info().Msg("writing default config file to: " + fp)
|
||||
}
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user