mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-19 15:02:10 +00:00
Parse config just once
This commit is contained in:
1 parent
338300248c
commit
ec83281d18
4 files changed
+25
-6
No files matched your search
@@ -8,7 +8,11 @@ import (
|
||||
type FreedomFactory struct {
|
||||
}
|
||||
|
||||
func (factory FreedomFactory) Create(vp *core.Point, config []byte, firstPacket v2net.Packet) (core.OutboundConnectionHandler, error) {
|
||||
func (factory FreedomFactory) Initialize(config []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (factory FreedomFactory) Create(vp *core.Point, firstPacket v2net.Packet) (core.OutboundConnectionHandler, error) {
|
||||
return NewFreedomConnection(firstPacket), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user