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
1 changed files with 3 additions and 3 deletions

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
}