mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-07 00:42:22 +07:00
fix: should update system DNS every 5 seconds
This commit is contained in:
@ -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)
|
||||
}
|
||||
}()
|
||||
|
||||
|
Reference in New Issue
Block a user