aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2024-04-19 13:10:01 -0600
committerFrancis Lavoie <[email protected]>2024-04-23 19:55:18 -0400
commit64418de0adb669936351b4d7002fd736e81a5110 (patch)
tree46cbeeaec25e597a7f49e3e0b389b3a97ca3ae6c
parent4961e22942c0d3149ac7a308f0cae3f26b5c7b38 (diff)
downloadcaddy-64418de0adb669936351b4d7002fd736e81a5110.tar.gz
caddy-64418de0adb669936351b4d7002fd736e81a5110.zip
Enhance comment
-rw-r--r--cmd/x509rootsfallback.go24
1 files changed, 14 insertions, 10 deletions
diff --git a/cmd/x509rootsfallback.go b/cmd/x509rootsfallback.go
index f8b64edb8..935a48ec1 100644
--- a/cmd/x509rootsfallback.go
+++ b/cmd/x509rootsfallback.go
@@ -14,16 +14,20 @@
package caddycmd
-// For running in minimal environments, this can ease
-// headaches related to establishing TLS connections.
-// "Package fallback embeds a set of fallback X.509 trusted
-// roots in the application by automatically invoking
-// x509.SetFallbackRoots. This allows the application to
-// work correctly even if the operating system does not
-// provide a verifier or system roots pool. ... It's
-// recommended that only binaries, and not libraries,
-// import this package. This package must be kept up to
-// date for security and compatibility reasons."
import (
+ // For running in minimal environments, this can ease
+ // headaches related to establishing TLS connections.
+ // "Package fallback embeds a set of fallback X.509 trusted
+ // roots in the application by automatically invoking
+ // x509.SetFallbackRoots. This allows the application to
+ // work correctly even if the operating system does not
+ // provide a verifier or system roots pool. ... It's
+ // recommended that only binaries, and not libraries,
+ // import this package. This package must be kept up to
+ // date for security and compatibility reasons."
+ //
+ // This is in its own file only because of conflicts
+ // between gci and goimports when in main.go.
+ // See https://github.com/daixiang0/gci/issues/76
_ "golang.org/x/crypto/x509roots/fallback"
)