fix config creator cache

pull/314/head v2.2.1
Darien Raymond 2016-10-03 12:25:36 +02:00
parent fd50e8e12b
commit 67793eb3e0
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
3 changed files with 15 additions and 3 deletions

View File

@ -34,6 +34,10 @@
} }
}, },
"transport": { "transport": {
"connectionReuse": true "kcpSettings": {
"header": {
"type": "srtp"
}
}
} }
} }

View File

@ -46,6 +46,10 @@
} }
], ],
"transport": { "transport": {
"connectionReuse": true "kcpSettings": {
"header": {
"type": "srtp"
}
}
} }
} }

View File

@ -15,5 +15,9 @@ func CreateAuthenticatorConfig(rawConfig []byte) (string, interface{}, error) {
} }
var ( var (
configLoader = loader.NewJSONConfigLoader(loader.ConfigCreatorCache{}, "type", "") configLoader loader.ConfigLoader
) )
func init() {
configLoader = loader.NewJSONConfigLoader(configCache, "type", "")
}