1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 01:45:23 +00:00
This commit is contained in:
v2ray 2016-06-11 01:32:55 +02:00
parent 9c3f2ada47
commit 8a83a0b30e

View File

@ -19,7 +19,7 @@ func (this *Config) UnmarshalJSON(data []byte) error {
}
this.Response = new(NoneResponse)
if jsonConfig.Response == nil {
if jsonConfig.Response != nil {
loader := loader.NewJSONConfigLoader("type", "")
loader.RegisterCreator("none", func() interface{} { return new(NoneResponse) })
loader.RegisterCreator("http", func() interface{} { return new(HTTPResponse) })