v2ray před 9 roky
rodič
revize
8a83a0b30e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      proxy/blackhole/config_json.go

+ 1 - 1
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) })