mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-05 19:00:57 +01:00
Do the netprobe even in offline mode
This is likely to be required at least on Windows.
This commit is contained in:
parent
bcaf0bca96
commit
94cf37dacf
1 changed files with 3 additions and 3 deletions
|
@ -469,10 +469,10 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
|
||||||
proxy.listenAddresses = nil
|
proxy.listenAddresses = nil
|
||||||
}
|
}
|
||||||
dlog.Noticef("dnscrypt-proxy %s", AppVersion)
|
dlog.Noticef("dnscrypt-proxy %s", AppVersion)
|
||||||
|
if err := NetProbe(netprobeAddress, netprobeTimeout); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if !config.OfflineMode {
|
if !config.OfflineMode {
|
||||||
if err := NetProbe(netprobeAddress, netprobeTimeout); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := config.loadSources(proxy); err != nil {
|
if err := config.loadSources(proxy); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue