1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-02-20 23:47:21 -05:00
v2fly/net/freedom/freedomfactory.go

18 lines
398 B
Go
Raw Normal View History

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