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 }) }
func init() { internal.MustRegisterOutboundConnectionHandlerCreator("freedom", func(space app.Space, config interface{}) (proxy.OutboundConnectionHandler, error) { return &FreedomConnection{space: space}, nil }) }
func init() { internal.MustRegisterOutboundConnectionHandlerCreator("blackhole", func(space app.Space, config interface{}) (proxy.OutboundConnectionHandler, error) { return NewBlackHole(), nil }) }