freedomfactory.go 330 B

12345678910111213141516
  1. package freedom
  2. import (
  3. "github.com/v2ray/v2ray-core/proxy"
  4. )
  5. type FreedomFactory struct {
  6. }
  7. func (factory FreedomFactory) Create(config interface{}) (proxy.OutboundConnectionHandler, error) {
  8. return NewFreedomConnection(), nil
  9. }
  10. func init() {
  11. proxy.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
  12. }