1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

enable connection reuse by default

This commit is contained in:
v2ray 2016-06-11 02:05:29 +02:00
parent d9b59133cc
commit b17edf907e
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,9 @@ func (this *Config) UnmarshalJSON(data []byte) error {
type JsonConfig struct {
ConnectionReuse bool `json:"connectionReuse"`
}
jsonConfig := new(JsonConfig)
jsonConfig := &JsonConfig{
ConnectionReuse: true,
}
if err := json.Unmarshal(data, jsonConfig); err != nil {
return err
}

View File

@ -1,7 +1,7 @@
package transport
var (
connectionReuse = false
connectionReuse = true
)
func IsConnectionReusable() bool {