freedomfactory.go 338 B

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