diff --git a/tools/conf/transport_authenticators.go b/tools/conf/transport_authenticators.go index 6f7d56915..c31e5b0d9 100644 --- a/tools/conf/transport_authenticators.go +++ b/tools/conf/transport_authenticators.go @@ -18,6 +18,12 @@ func (NoOpAuthenticator) Build() (*loader.TypedSettings, error) { return loader.NewTypedSettings(new(noop.Config)), nil } +type NoOpConnectionAuthenticator struct{} + +func (NoOpConnectionAuthenticator) Build() (*loader.TypedSettings, error) { + return loader.NewTypedSettings(new(noop.Config)), nil +} + type SRTPAuthenticator struct{} func (SRTPAuthenticator) Build() (*loader.TypedSettings, error) { diff --git a/tools/conf/transport_internet.go b/tools/conf/transport_internet.go index c2ec1a33e..24e4cd81c 100644 --- a/tools/conf/transport_internet.go +++ b/tools/conf/transport_internet.go @@ -24,6 +24,7 @@ var ( }, "type", "") tcpHeaderLoader = NewJSONConfigLoader(ConfigCreatorCache{ + "none": func() interface{} { return new(NoOpConnectionAuthenticator) }, "http": func() interface{} { return new(HTTPAuthenticator) }, }, "type", "") )