v2ray-core/proxy/freedom/freedomfactory.go

17 lines
338 B
Go
Raw Normal View History

2015-09-11 12:12:09 +00:00
package freedom
import (
"github.com/v2ray/v2ray-core"
)
type FreedomFactory struct {
}
2015-10-06 22:30:44 +00:00
func (factory FreedomFactory) Create(vp *core.Point, config interface{}) (core.OutboundConnectionHandler, error) {
return NewFreedomConnection(), nil
2015-09-11 12:12:09 +00:00
}
2015-09-12 18:36:21 +00:00
func init() {
core.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
}