From 65577146fc5b804434e82156c6b17ec1c7e2cded Mon Sep 17 00:00:00 2001 From: JeremyRand Date: Sat, 4 Nov 2017 07:57:58 +0000 Subject: [PATCH] gofmt -s certinject/certinject_windows.go --- certinject/certinject_windows.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/certinject/certinject_windows.go b/certinject/certinject_windows.go index 2764a4f..8811560 100644 --- a/certinject/certinject_windows.go +++ b/certinject/certinject_windows.go @@ -1,21 +1,20 @@ package certinject import ( - "gopkg.in/hlandau/easyconfig.v1/cflag" "github.com/hlandau/xlog" + "gopkg.in/hlandau/easyconfig.v1/cflag" ) - -// This package is used to add and remove certificates to the system trust +// This package is used to add and remove certificates to the system trust // store. // Currently only supports Windows CryptoAPI. var log, Log = xlog.New("ncdns.certinject") var ( - flagGroup = cflag.NewGroup(nil, "certstore") - cryptoApiFlag = cflag.Bool(flagGroup, "cryptoapi", false, "Synchronize TLS certs to the CryptoAPI trust store? This enables HTTPS to work with Chromium/Chrome. Only use if you've set up null HPKP in Chromium/Chrome as per documentation. If you haven't set up null HPKP, or if you access ncdns from browsers not based on Chromium or Firefox, this is unsafe and should not be used.") - certExpirePeriod = cflag.Int(flagGroup, "expire", 60 * 30, "Duration (in seconds) after which TLS certs will be removed from the trust store. Making this smaller than the DNS TTL (default 600) may cause TLS errors.") + flagGroup = cflag.NewGroup(nil, "certstore") + cryptoApiFlag = cflag.Bool(flagGroup, "cryptoapi", false, "Synchronize TLS certs to the CryptoAPI trust store? This enables HTTPS to work with Chromium/Chrome. Only use if you've set up null HPKP in Chromium/Chrome as per documentation. If you haven't set up null HPKP, or if you access ncdns from browsers not based on Chromium or Firefox, this is unsafe and should not be used.") + certExpirePeriod = cflag.Int(flagGroup, "expire", 60*30, "Duration (in seconds) after which TLS certs will be removed from the trust store. Making this smaller than the DNS TTL (default 600) may cause TLS errors.") ) // Injects the given cert into all configured trust stores.