mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 04:55:37 -05:00
massive refactoring against json config parsing
This commit is contained in:
14
proxy/blackhole/config_json.go
Normal file
14
proxy/blackhole/config_json.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// +build json
|
||||
|
||||
package blackhole
|
||||
|
||||
import (
|
||||
"github.com/v2ray/v2ray-core/proxy/internal/config"
|
||||
)
|
||||
|
||||
func init() {
|
||||
config.RegisterOutboundConnectionConfig("blackhole",
|
||||
func(data []byte) (interface{}, error) {
|
||||
return new(Config), nil
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user