diff --git a/gateway/logic/hosts/hosts.go b/gateway/logic/hosts/hosts.go index 1164884..1016f21 100644 --- a/gateway/logic/hosts/hosts.go +++ b/gateway/logic/hosts/hosts.go @@ -182,7 +182,7 @@ func (h *Hosts) resetGatewayIps(goSort bool) { etcd.WithSort(etcd.SortByKey, etcd.SortDescend), ) if err != nil || resp.Kvs == nil || len(resp.Kvs) == 0 { - h.ips.Store([]string{}) + h.ips.Store(new(types.GwHosts)) return } var (