diff --git a/server/options.go b/server/options.go index 6a54620c..5caba936 100644 --- a/server/options.go +++ b/server/options.go @@ -214,6 +214,13 @@ func TLSConfig(t *tls.Config) Option { return func(o *Options) { // set the internal tls o.TLSConfig = t + + // set the default transport if one is not + // already set. Required for Init call below. + if o.Transport == nil { + o.Transport = transport.DefaultTransport + } + // set the transport tls o.Transport.Init( transport.Secure(true),