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 09:51:42 +00:00
|
|
|
func (factory FreedomFactory) Create(vp *core.VPoint, config []byte, dest v2net.VAddress) (core.OutboundConnectionHandler, error) {
|
|
|
|
return NewVFreeConnection(dest), nil
|
2015-09-11 12:12:09 +00:00
|
|
|
}
|
2015-09-12 18:36:21 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
core.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
|
|
|
|
}
|