summaryrefslogtreecommitdiff
path: root/plugins/http/plugin.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http/plugin.go')
-rw-r--r--plugins/http/plugin.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go
index 222bf852..2e00a91a 100644
--- a/plugins/http/plugin.go
+++ b/plugins/http/plugin.go
@@ -77,6 +77,11 @@ func (s *Plugin) Init(cfg config.Configurer, log logger.Logger, server server.Se
return errors.E(op, err)
}
+ // if no HTTP section in config - disable HTTP
+ if s.cfg == nil {
+ return errors.E(op, errors.Disabled)
+ }
+
err = s.cfg.InitDefaults()
if err != nil {
return errors.E(op, err)