mirror of https://github.com/v2ray/v2ray-core
17 lines
330 B
Go
17 lines
330 B
Go
package freedom
|
|
|
|
import (
|
|
"github.com/v2ray/v2ray-core/proxy"
|
|
)
|
|
|
|
type FreedomFactory struct {
|
|
}
|
|
|
|
func (factory FreedomFactory) Create(config interface{}) (proxy.OutboundConnectionHandler, error) {
|
|
return NewFreedomConnection(), nil
|
|
}
|
|
|
|
func init() {
|
|
proxy.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
|
|
}
|