diff --git a/config/config.go b/config/config.go index 9685100..7950997 100644 --- a/config/config.go +++ b/config/config.go @@ -92,6 +92,10 @@ func (m *Manager) ConfigureProtocol(name string, cfg ProtocolConfig) error { return err } + if m.root.Protocol == nil { + m.root.Protocol = make(map[string]interface{}) + } + m.root.Protocol[name] = cfg return nil