mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-05-15 00:50:25 +02:00
cmd/cli: log that multiple interfaces DNS set
This commit is contained in:
committed by
Cuong Manh Le
parent
841be069b7
commit
2d9c60dea1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user