mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/cli: notice writing default config in local mode
This commit is contained in:
committed by
Cuong Manh Le
parent
9e6e647ff8
commit
17f6d7a77b
@@ -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