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

	json.RegisterConfigType("vmess", config.TypeOutbound, func() interface{} {
		return new(VMessOutboundConfig)
	})
}
Esempio n. 2
0
func init() {
	json.RegisterConfigType("socks", config.TypeInbound, func() interface{} {
		return new(SocksConfig)
	})
}
Esempio n. 3
0
func init() {
	jsonconfig.RegisterConfigType("vmess", config.TypeOutbound, func() interface{} {
		return new(Outbound)
	})
}
Esempio n. 4
0
func init() {
	json.RegisterConfigType("freedom", config.TypeOutbound, func() interface{} {
		return &FreedomConfiguration{}
	})
}