1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-17 23:06:30 -05:00
v2fly/net/freedom/freedomfactory.go

18 lines
398 B
Go
Raw Normal View History

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