1
0
mirror of https://github.com/DNSCrypt/dnscrypt-proxy.git synced 2024-12-29 00:30:30 +01:00

Do the netprobe even in offline mode

This is likely to be required at least on Windows.
This commit is contained in:
Frank Denis 2019-10-18 20:34:26 +02:00
parent bcaf0bca96
commit 94cf37dacf

View File

@ -469,10 +469,10 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
proxy.listenAddresses = nil
}
dlog.Noticef("dnscrypt-proxy %s", AppVersion)
if err := NetProbe(netprobeAddress, netprobeTimeout); err != nil {
return err
}
if !config.OfflineMode {
if err := NetProbe(netprobeAddress, netprobeTimeout); err != nil {
return err
}
if err := config.loadSources(proxy); err != nil {
return err
}