fix: should update system DNS every 5 seconds

This commit is contained in:
mzz2017
2023-04-02 17:43:50 +08:00
parent 648710a40e
commit 85343ac141
9 changed files with 61 additions and 41 deletions

View File

@ -83,7 +83,7 @@ func NewUpstream(ctx context.Context, upstream *url.URL) (up *Upstream, err erro
}
defer func() {
if err != nil {
_ = netutils.TryUpdateSystemDns1s()
_ = netutils.TryUpdateSystemDnsElapse(time.Second)
}
}()