1
0
Fork 0

Add user agent for ACME

This commit is contained in:
Ludovic Fernandez 2018-06-05 09:54:03 +02:00 committed by Traefiker Bot
parent 6d07729c55
commit ae7c947ba5
6 changed files with 11 additions and 5 deletions

View file

@ -22,6 +22,7 @@ import (
"github.com/containous/traefik/safe"
traefikTLS "github.com/containous/traefik/tls"
"github.com/containous/traefik/types"
"github.com/containous/traefik/version"
"github.com/pkg/errors"
"github.com/xenolf/lego/acme"
legolog "github.com/xenolf/lego/log"
@ -98,6 +99,7 @@ func (p *Provider) SetConfigListenerChan(configFromListenerChan chan types.Confi
}
func (p *Provider) init() error {
acme.UserAgent = fmt.Sprintf("containous-traefik/%s", version.Version)
if p.ACMELogging {
legolog.Logger = fmtlog.New(os.Stderr, "legolog: ", fmtlog.LstdFlags)
} else {