mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 15:53:17 +00:00
cmd: Use newly-available version information (#4931)
This commit is contained in:
parent
1960a0dc11
commit
17ae5acaba
5 changed files with 103 additions and 69 deletions
|
@ -94,10 +94,8 @@ func (t *Transport) Provision(ctx caddy.Context) error {
|
|||
t.Root = "{http.vars.root}"
|
||||
}
|
||||
|
||||
t.serverSoftware = "Caddy"
|
||||
if mod := caddy.GoModule(); mod.Version != "" {
|
||||
t.serverSoftware += "/" + mod.Version
|
||||
}
|
||||
version, _ := caddy.Version()
|
||||
t.serverSoftware = "Caddy/" + version
|
||||
|
||||
// Set a relatively short default dial timeout.
|
||||
// This is helpful to make load-balancer retries more speedy.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue