From 49a568e9c05b04125bf22449727ca5c56156bc65 Mon Sep 17 00:00:00 2001 From: Ben Toogood Date: Fri, 3 Apr 2020 12:33:19 +0100 Subject: [PATCH] Set default server auth --- server/options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/options.go b/server/options.go index 5caba936..63b895bb 100644 --- a/server/options.go +++ b/server/options.go @@ -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 }