massive refactoring for configuration

This commit is contained in:
V2Ray committed 2015-09-12 11:51:42 +02:00
1 parent 791ac780f0
commit 0ca7dab49b
15 files changed
+212 -147

No files matched your search

+2 -4
View File
@@ -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
}
+2 -2
View File
@@ -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
}