Set default server auth

This commit is contained in:
Ben Toogood 2020-04-03 12:33:19 +01:00
parent dea2d7ab9f
commit 49a568e9c0

View File

@ -60,6 +60,10 @@ func newOptions(opt ...Option) Options {
o(&opts)
}
if opts.Auth == nil {
opts.Auth = auth.DefaultAuth
}
if opts.Broker == nil {
opts.Broker = broker.DefaultBroker
}