mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-27 12:52:27 +02:00
cmd/cli: fix wrong generated config for nextdns resolver
Generating nextdns config must happen after stopping current ctrld process. Otherwise, config processing may pick wrong IP+Port. While at it, also making logging better when updating listener config: - Change warn to info, prevent confusing that "something is wrong". - Do not emit info when generating working default config, which may cause duplicated messages printed.
This commit is contained in:
committed by
Cuong Manh Le
parent
4614b98e94
commit
09188bedf7
+1
-1
@@ -135,7 +135,7 @@ func (p *prog) runWait() {
|
||||
|
||||
waitOldRunDone()
|
||||
|
||||
_, ok := tryUpdateListenerConfig(newCfg, false)
|
||||
_, ok := tryUpdateListenerConfig(newCfg, nil, false)
|
||||
if !ok {
|
||||
logger.Error().Msg("could not update listener config")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user