2015-09-11 08:12:09 -04:00
|
|
|
package freedom
|
|
|
|
|
|
|
|
import (
|
2015-10-29 19:11:29 -04:00
|
|
|
"github.com/v2ray/v2ray-core/proxy/common/connhandler"
|
2015-09-11 08:12:09 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
type FreedomFactory struct {
|
|
|
|
}
|
|
|
|
|
2015-11-27 15:50:28 -05:00
|
|
|
func (this FreedomFactory) Create(config interface{}) (connhandler.OutboundConnectionHandler, error) {
|
2015-10-06 18:30:44 -04:00
|
|
|
return NewFreedomConnection(), nil
|
2015-09-11 08:12:09 -04:00
|
|
|
}
|
2015-09-12 14:36:21 -04:00
|
|
|
|
|
|
|
func init() {
|
2015-10-29 19:11:29 -04:00
|
|
|
connhandler.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
|
2015-09-12 14:36:21 -04:00
|
|
|
}
|