mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-11-04 01:00:21 +00:00
feat: remote dns configs
This commit is contained in:
1 parent
a18cd2f134
commit
edfda22766
4 files changed
+71
-35
No files matched your search
+1
-1
@@ -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