コード例 #1
0
ファイル: config.go プロジェクト: NinjaOSX/v2ray-core
func init() {
	json.RegisterConfigType("vmess", config.TypeInbound, func() interface{} {
		return new(VMessInboundConfig)
	})

	json.RegisterConfigType("vmess", config.TypeOutbound, func() interface{} {
		return new(VMessOutboundConfig)
	})
}
コード例 #2
0
ファイル: config.go プロジェクト: NinjaOSX/v2ray-core
func init() {
	json.RegisterConfigType("socks", config.TypeInbound, func() interface{} {
		return new(SocksConfig)
	})
}
コード例 #3
0
ファイル: outbound.go プロジェクト: amazted/v2ray-core
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{}
	})
}