v2ray-core/proxy/freedom/freedomfactory.go

17 lines
330 B
Go
Raw Normal View History

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