simplify connection reuse settings

This commit is contained in:
v2ray committed 2016-06-02 20:52:52 +02:00
1 parent 9a8bc3fc3c
commit ff0cb89efa
8 files changed
+19 -62

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ var (
func Dial(dest v2net.Destination) (*Connection, error) {
destStr := dest.String()
var conn net.Conn
if transport.TCPStreamConfig.ConnectionReuse {
if transport.IsConnectionReusable() {
conn = globalCache.Get(destStr)
}
if conn == nil {