cmd/cli: log validate remote config during "ctrld restart"

The same manner with what ctrld is doing for "ctrld start" command.
This commit is contained in:
Cuong Manh Le
2024-07-17 18:10:26 +07:00
committed by Cuong Manh Le
parent 9b0f0e792a
commit dc48c908b8
2 changed files with 54 additions and 35 deletions
+1
View File
@@ -178,6 +178,7 @@ func (p *prog) registerControlServerHandler() {
p.cs.register(cdPath, http.HandlerFunc(func(w http.ResponseWriter, request *http.Request) {
if cdUID != "" {
w.WriteHeader(http.StatusOK)
w.Write([]byte(cdUID))
return
}
w.WriteHeader(http.StatusBadRequest)