mirror of https://github.com/v2ray/v2ray-core
typo
parent
9c3f2ada47
commit
8a83a0b30e
|
@ -19,7 +19,7 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.Response = new(NoneResponse)
|
this.Response = new(NoneResponse)
|
||||||
if jsonConfig.Response == nil {
|
if jsonConfig.Response != nil {
|
||||||
loader := loader.NewJSONConfigLoader("type", "")
|
loader := loader.NewJSONConfigLoader("type", "")
|
||||||
loader.RegisterCreator("none", func() interface{} { return new(NoneResponse) })
|
loader.RegisterCreator("none", func() interface{} { return new(NoneResponse) })
|
||||||
loader.RegisterCreator("http", func() interface{} { return new(HTTPResponse) })
|
loader.RegisterCreator("http", func() interface{} { return new(HTTPResponse) })
|
||||||
|
|
Loading…
Reference in New Issue