Skip to content

Commit

Permalink
move to a seperate file and use negative build tag - thx @hhhapz
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jun 23, 2024
1 parent 791dfb6 commit 3e8d017
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@

# Dependency directories (remove the comment below to include it)
# vendor/
.DS_Store
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ Short 'numeric' version (v skipped, useful for docker image tags etc)
You should always try to use `FROM scratch` Docker images when possible,
it's one of the strength of go.
Using this `fortio.org/cli` as a base makes it work
for TLS by defaulting to the bundle provided by `golang.org/x/crypto/x509roots/fallback` automatically.
Using this `fortio.org/cli` as a base makes it work for outcalls to internet valid TLS certs (e.g. https).
by defaulting to the bundle provided by `golang.org/x/crypto/x509roots/fallback` automatically.
See https://github.com/fortio/multicurl for a good example.
If you do not want this behavior, build using `-tag=no_tls_fallback`.

0 comments on commit 3e8d017

Please sign in to comment.