feat: remote dns configs

This commit is contained in:
cubemaze
2023-07-28 01:07:56 +08:00
parent a18cd2f134
commit edfda22766
4 changed files with 71 additions and 35 deletions

View File

@@ -27,7 +27,7 @@ func (p *Conf) Watch(filePath, dnsPath string, reload func()) error {
}
pre = time.Now()
go func() {
time.Sleep(10 * time.Second)
time.Sleep(5 * time.Second)
if e.Name == dnsPath {
log.Println("DNS file changed, reloading...")
} else {