From 3d5fc8e2a208099c46e4647ca727938a93ded084 Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Fri, 16 Oct 2020 13:36:15 -0400 Subject: [PATCH] fixes issue #129. didn't remove the dns entry from the map --- service/cziti/dns.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/cziti/dns.go b/service/cziti/dns.go index a7a8b1a8..fad7c906 100644 --- a/service/cziti/dns.go +++ b/service/cziti/dns.go @@ -179,6 +179,8 @@ func (dns *dnsImpl) UnregisterService(ctx *CZitiCtx, name string) { if err != nil { log.Warnf("Unexpected error removing route for %s", icept.host) } + } else { + delete(dns.hostnameMap, icept.host) } delete(dns.serviceMap, key) } else {