mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 12:40:11 +00:00
feat: remote dns configs
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user