Exemplo n.º 1
0
func init() {
	internal.MustRegisterOutboundConnectionHandlerCreator("vmess",
		func(space app.Space, rawConfig interface{}) (proxy.OutboundConnectionHandler, error) {
			vOutConfig := rawConfig.(*Config)
			return &VMessOutboundHandler{
				space:           space,
				receiverManager: NewReceiverManager(vOutConfig.Receivers),
			}, nil
		})
}
Exemplo n.º 2
0
func init() {
	internal.MustRegisterOutboundConnectionHandlerCreator("freedom",
		func(space app.Space, config interface{}) (proxy.OutboundConnectionHandler, error) {
			return &FreedomConnection{space: space}, nil
		})
}
Exemplo n.º 3
0
func init() {
	internal.MustRegisterOutboundConnectionHandlerCreator("blackhole",
		func(space app.Space, config interface{}) (proxy.OutboundConnectionHandler, error) {
			return NewBlackHole(), nil
		})
}