cmd/cli: log that multiple interfaces DNS set

This commit is contained in:
Cuong Manh Le
2025-01-16 07:24:16 +07:00
committed by Cuong Manh Le
parent 841be069b7
commit 2d9c60dea1
2 changed files with 24 additions and 2 deletions
+2
View File
@@ -34,6 +34,7 @@ const (
type ifaceResponse struct {
Name string `json:"name"`
All bool `json:"all"`
OK bool `json:"ok"`
}
type controlServer struct {
@@ -217,6 +218,7 @@ func (p *prog) registerControlServerHandler() {
if p.csSetDnsOk {
res.Name = p.runningIface
res.All = p.requiredMultiNICsConfig
res.OK = true
}
}
if err := json.NewEncoder(w).Encode(res); err != nil {