예제 #1
0
func init() {
	json.RegisterConfigType("vmess", config.TypeInbound, func() interface{} {
		return new(VMessInboundConfig)
	})

	json.RegisterConfigType("vmess", config.TypeOutbound, func() interface{} {
		return new(VMessOutboundConfig)
	})
}
예제 #2
0
func init() {
	json.RegisterConfigType("socks", config.TypeInbound, func() interface{} {
		return new(SocksConfig)
	})
}
예제 #3
0
func init() {
	jsonconfig.RegisterConfigType("vmess", config.TypeOutbound, func() interface{} {
		return new(Outbound)
	})
}
예제 #4
0
파일: json.go 프로젝트: NinjaOSX/v2ray-core
func init() {
	json.RegisterConfigType("freedom", config.TypeOutbound, func() interface{} {
		return &FreedomConfiguration{}
	})
}