mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-28 04:55:37 -05:00
18 lines
423 B
Go
18 lines
423 B
Go
package freedom
|
|
|
|
import (
|
|
"github.com/v2ray/v2ray-core"
|
|
v2net "github.com/v2ray/v2ray-core/common/net"
|
|
)
|
|
|
|
type FreedomFactory struct {
|
|
}
|
|
|
|
func (factory FreedomFactory) Create(vp *core.Point, config interface{}, firstPacket v2net.Packet) (core.OutboundConnectionHandler, error) {
|
|
return NewFreedomConnection(firstPacket), nil
|
|
}
|
|
|
|
func init() {
|
|
core.RegisterOutboundConnectionHandlerFactory("freedom", FreedomFactory{})
|
|
}
|