mirror of https://github.com/v2ray/v2ray-core
Fix TLS type
parent
6fd8871374
commit
0b16486fce
|
@ -5,6 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"v2ray.com/core/common/errors"
|
"v2ray.com/core/common/errors"
|
||||||
"v2ray.com/core/common/loader"
|
"v2ray.com/core/common/loader"
|
||||||
v2net "v2ray.com/core/common/net"
|
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.")
|
return nil, errors.Base(err).Message("Failed to build TLS config.")
|
||||||
}
|
}
|
||||||
config.SecuritySettings = append(config.SecuritySettings, ts)
|
config.SecuritySettings = append(config.SecuritySettings, ts)
|
||||||
|
config.SecurityType = ts.Type
|
||||||
}
|
}
|
||||||
if v.TCPSettings != nil {
|
if v.TCPSettings != nil {
|
||||||
ts, err := v.TCPSettings.Build()
|
ts, err := v.TCPSettings.Build()
|
||||||
|
|
Loading…
Reference in New Issue