瀏覽代碼

Fix TLS type

Darien Raymond 9 年之前
父節點
當前提交
0b16486fce
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tools/conf/transport_internet.go

+ 2 - 0
tools/conf/transport_internet.go

@@ -5,6 +5,7 @@ import (
 	"fmt"
 	"io/ioutil"
 	"strings"
+
 	"v2ray.com/core/common/errors"
 	"v2ray.com/core/common/loader"
 	v2net "v2ray.com/core/common/net"
@@ -196,6 +197,7 @@ func (v *StreamConfig) Build() (*internet.StreamConfig, error) {
 			return nil, errors.Base(err).Message("Failed to build TLS config.")
 		}
 		config.SecuritySettings = append(config.SecuritySettings, ts)
+		config.SecurityType = ts.Type
 	}
 	if v.TCPSettings != nil {
 		ts, err := v.TCPSettings.Build()