1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-04 21:15:24 +00:00
v2fly/proxy/freedom/freedomfactory.go

17 lines
361 B
Go
Raw Normal View History

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