fix: remove svc from hosts if svc deleted (#107)

This commit is contained in:
naison
2023-12-29 23:07:07 +08:00
committed by GitHub
parent 80ffd2f468
commit c3c6864b47
7 changed files with 62 additions and 17 deletions

View File

@@ -194,7 +194,7 @@ func (c *Config) CancelDNS() {
_ = os.RemoveAll(filepath.Join("/", "etc", "resolver"))
}
//networkCancel()
c.removeHosts()
c.removeHosts(c.Hosts)
}
/*