| 12345678910111213141516171819202122 |
- package transport
- import "github.com/v2ray/v2ray-core/common/log"
- var (
- TCPStreamConfig = &TCPConfig{
- ConnectionReuse: false,
- }
- )
- func ApplyConfig(config *Config) error {
- if config.StreamType == StreamTypeTCP {
- if config.TCPConfig != nil {
- TCPStreamConfig = config.TCPConfig
- if config.TCPConfig.ConnectionReuse {
- log.Info("Transport: TCP connection reuse enabled.")
- }
- }
- }
- return nil
- }
|