From 8a83a0b30e91083fb9128b93000d953030cc5e77 Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 11 Jun 2016 01:32:55 +0200 Subject: [PATCH] typo --- proxy/blackhole/config_json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/blackhole/config_json.go b/proxy/blackhole/config_json.go index d2d31d28c..2bf9696b6 100644 --- a/proxy/blackhole/config_json.go +++ b/proxy/blackhole/config_json.go @@ -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) })