Merge pull request #140 from openziti/issue-129-dns-entry-not-removed

fixes issue #129. didn't remove the dns entry from the map
This commit is contained in:
dovholuknf
2020-10-16 14:36:47 -04:00
committed by GitHub
+2
View File
@@ -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 {