Print the version before the netprobe

Fixes #901
This commit is contained in:
Frank Denis 2019-09-07 11:30:46 +02:00
parent 9a9f780620
commit 208c67b53b
2 changed files with 2 additions and 3 deletions

View File

@ -451,6 +451,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error {
if proxy.showCerts {
proxy.listenAddresses = nil
}
dlog.Noticef("dnscrypt-proxy %s", AppVersion)
NetProbe(netprobeAddress, netprobeTimeout)
if !config.OfflineMode {

View File

@ -15,7 +15,7 @@
)
const (
AppVersion = "2.0.25"
AppVersion = "2.0.26"
DefaultConfigFileName = "dnscrypt-proxy.toml"
)
@ -55,8 +55,6 @@ func main() {
if err := ConfigLoad(&app.proxy, svcFlag); err != nil {
dlog.Fatal(err)
}
dlog.Noticef("dnscrypt-proxy %s", AppVersion)
if len(*svcFlag) != 0 {
if svc == nil {
dlog.Fatal("Built-in service installation is not supported on this platform")