config_json.go 268 B

123456789101112131415
  1. // +build json
  2. package blackhole
  3. import (
  4. "github.com/v2ray/v2ray-core/proxy/internal"
  5. )
  6. func (this *Config) UnmarshalJSON(data []byte) error {
  7. return nil
  8. }
  9. func init() {
  10. internal.RegisterOutboundConfig("blackhole", func() interface{} { return new(Config) })
  11. }