mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-13 22:45:13 +00:00
massive refactoring for configuration
This commit is contained in:
1 parent
791ac780f0
commit
0ca7dab49b
15 files changed
+212
-147
No files matched your search
@@ -10,13 +10,11 @@ import (
|
||||
)
|
||||
|
||||
type VFreeConnection struct {
|
||||
vPoint *core.VPoint
|
||||
dest v2net.VAddress
|
||||
dest v2net.VAddress
|
||||
}
|
||||
|
||||
func NewVFreeConnection(vp *core.VPoint, dest v2net.VAddress) *VFreeConnection {
|
||||
func NewVFreeConnection(dest v2net.VAddress) *VFreeConnection {
|
||||
conn := new(VFreeConnection)
|
||||
conn.vPoint = vp
|
||||
conn.dest = dest
|
||||
return conn
|
||||
}
|
||||
|
||||
@@ -8,6 +8,6 @@ import (
|
||||
type FreedomFactory struct {
|
||||
}
|
||||
|
||||
func (factory FreedomFactory) Create(vp *core.VPoint, dest v2net.VAddress) (core.OutboundConnectionHandler, error) {
|
||||
return NewVFreeConnection(vp, dest), nil
|
||||
func (factory FreedomFactory) Create(vp *core.VPoint, config []byte, dest v2net.VAddress) (core.OutboundConnectionHandler, error) {
|
||||
return NewVFreeConnection(dest), nil
|
||||
}
|
||||
Reference in new issue
Block a user