Add nil check for acme provider
This commit is contained in:
parent
a4f0dd8939
commit
dd7677e6cc
@ -52,7 +52,7 @@ func (s *httpServer) Start() error {
|
|||||||
var l net.Listener
|
var l net.Listener
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
if s.opts.EnableACME {
|
if s.opts.EnableACME && s.opts.ACMEProvider != nil {
|
||||||
// should we check the address to make sure its using :443?
|
// should we check the address to make sure its using :443?
|
||||||
l, err = s.opts.ACMEProvider.NewListener(s.opts.ACMEHosts...)
|
l, err = s.opts.ACMEProvider.NewListener(s.opts.ACMEHosts...)
|
||||||
} else if s.opts.EnableTLS && s.opts.TLSConfig != nil {
|
} else if s.opts.EnableTLS && s.opts.TLSConfig != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user