From 1e2c175e19f8d5db9f49d64c215469a058d18dc0 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 27 Feb 2018 03:04:44 +0100 Subject: [PATCH] Allow -test 0 --- dnscrypt-proxy/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnscrypt-proxy/config.go b/dnscrypt-proxy/config.go index 97822bb4..7f50690a 100644 --- a/dnscrypt-proxy/config.go +++ b/dnscrypt-proxy/config.go @@ -136,7 +136,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error { listAll := flag.Bool("list-all", false, "print the complete list of available resolvers, ignoring filters") jsonOutput := flag.Bool("json", false, "output list as JSON") check := flag.Bool("check", false, "check the configuration file and exit") - testGracePeriod := flag.Int("test", 0, "test that certificates of chosen servers are not going to expire before that number of minutes") + testGracePeriod := flag.Int("test", -1, "test that certificates of chosen servers are not going to expire before that number of minutes") flag.Parse() if *svcFlag == "stop" || *svcFlag == "uninstall" { return nil @@ -269,7 +269,7 @@ func ConfigLoad(proxy *Proxy, svcFlag *string) error { } proxy.allWeeklyRanges = allWeeklyRanges - if testGracePeriod != nil && *testGracePeriod > 0 { + if testGracePeriod != nil && *testGracePeriod >= 0 { proxy.testGracePeriod = testGracePeriod proxy.listenAddresses = nil }