2015-09-11 12:12:09 +00:00
|
|
|
package freedom
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/v2ray/v2ray-core"
|
2015-09-11 12:12:26 +00:00
|
|
|
v2net "github.com/v2ray/v2ray-core/net"
|
2015-09-11 12:12:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type FreedomFactory struct {
|
|
|
|
}
|
|
|
|
|
2015-09-12 20:11:54 +00:00
|
|
|
func (factory FreedomFactory) Create(vp *core.Point, config []byte, dest v2net.Address) (core.OutboundConnectionHandler, error) {
|
|
|
|
return NewFreedomConnection(dest), nil
|
2015-09-11 12:12:09 +00:00
|
|
|
}
|
2015-09-12 18:36:21 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
core.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
|
|
|
|
}
|