diff options
author | Matt Holt <mholt@users.noreply.github.com> | 2022-08-04 11:16:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 11:16:59 -0600 |
commit | 17ae5acaba536e98cfa86ddcd6967801f1fa1bbe (patch) | |
tree | fab5bd3d28ad46e14bb8916b95059de816db75ec /modules/caddyhttp/reverseproxy | |
parent | 1960a0dc117dd30fb507b390ddf93b2ef371b9ad (diff) |
cmd: Use newly-available version information (#4931)
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go b/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go index 2848133..313f4eb 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go @@ -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. |