1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-03-06 05:25:23 -05:00

configuration for connection reuse

This commit is contained in:
v2ray
2016-06-02 01:49:25 +02:00
parent 6ce7b1d532
commit a86cd36ad2
9 changed files with 124 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ import (
"github.com/v2ray/v2ray-core/app/router"
"github.com/v2ray/v2ray-core/common/log"
v2net "github.com/v2ray/v2ray-core/common/net"
"github.com/v2ray/v2ray-core/transport"
)
type ConnectionConfig struct {
@@ -55,6 +56,7 @@ type Config struct {
OutboundConfig *ConnectionConfig
InboundDetours []*InboundDetourConfig
OutboundDetours []*OutboundDetourConfig
TransportConfig *transport.Config
}
type ConfigLoader func(init string) (*Config, error)