1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-21 09:36:34 -05:00

fix config creator cache

This commit is contained in:
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": {
"connectionReuse": true
"kcpSettings": {
"header": {
"type": "srtp"
}
}
}
}

View File

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

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", "")
}