mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 17:46:58 -05:00
update default response
This commit is contained in:
parent
8b3875050d
commit
9c3f2ada47
@ -17,9 +17,9 @@ func (this *Config) UnmarshalJSON(data []byte) error {
|
||||
if err := json.Unmarshal(data, jsonConfig); err != nil {
|
||||
return err
|
||||
}
|
||||
if jsonConfig.Response == nil {
|
||||
|
||||
this.Response = new(NoneResponse)
|
||||
} else {
|
||||
if jsonConfig.Response == nil {
|
||||
loader := loader.NewJSONConfigLoader("type", "")
|
||||
loader.RegisterCreator("none", func() interface{} { return new(NoneResponse) })
|
||||
loader.RegisterCreator("http", func() interface{} { return new(HTTPResponse) })
|
||||
|
Loading…
Reference in New Issue
Block a user