fix config creator cache

This commit is contained in:
Darien Raymond
2016-10-03 12:25:36 +02:00
parent fd50e8e12b
commit 67793eb3e0
3 changed files with 15 additions and 3 deletions
+5 -1
View File
@@ -34,6 +34,10 @@
}
},
"transport": {
"connectionReuse": true
"kcpSettings": {
"header": {
"type": "srtp"
}
}
}
}
+5 -1
View File
@@ -46,6 +46,10 @@
}
],
"transport": {
"connectionReuse": true
"kcpSettings": {
"header": {
"type": "srtp"
}
}
}
}
+5 -1
View File
@@ -15,5 +15,9 @@ func CreateAuthenticatorConfig(rawConfig []byte) (string, interface{}, error) {
}
var (
configLoader = loader.NewJSONConfigLoader(loader.ConfigCreatorCache{}, "type", "")
configLoader loader.ConfigLoader
)
func init() {
configLoader = loader.NewJSONConfigLoader(configCache, "type", "")
}