Fix(vmess): typo (#248)
This commit is contained in:
parent
7db0522a51
commit
4c7da630f5
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ func NewVmess(option VmessOption) (*Vmess, error) {
|
||||||
WebSocketPath: option.WSPath,
|
WebSocketPath: option.WSPath,
|
||||||
WebSocketHeaders: option.WSHeaders,
|
WebSocketHeaders: option.WSHeaders,
|
||||||
SkipCertVerify: option.SkipCertVerify,
|
SkipCertVerify: option.SkipCertVerify,
|
||||||
SessionCacahe: getClientSessionCache(),
|
SessionCache: getClientSessionCache(),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
@ -86,7 +86,7 @@ type Config struct {
|
||||||
WebSocketPath string
|
WebSocketPath string
|
||||||
WebSocketHeaders map[string]string
|
WebSocketHeaders map[string]string
|
||||||
SkipCertVerify bool
|
SkipCertVerify bool
|
||||||
SessionCacahe tls.ClientSessionCache
|
SessionCache tls.ClientSessionCache
|
||||||
}
|
}
|
||||||
|
|
||||||
// New return a Conn with net.Conn and DstAddr
|
// New return a Conn with net.Conn and DstAddr
|
||||||
|
@ -139,7 +139,7 @@ func NewClient(config Config) (*Client, error) {
|
||||||
tlsConfig = &tls.Config{
|
tlsConfig = &tls.Config{
|
||||||
ServerName: config.HostName,
|
ServerName: config.HostName,
|
||||||
InsecureSkipVerify: config.SkipCertVerify,
|
InsecureSkipVerify: config.SkipCertVerify,
|
||||||
ClientSessionCache: config.SessionCacahe,
|
ClientSessionCache: config.SessionCache,
|
||||||
}
|
}
|
||||||
if tlsConfig.ClientSessionCache == nil {
|
if tlsConfig.ClientSessionCache == nil {
|
||||||
tlsConfig.ClientSessionCache = getClientSessionCache()
|
tlsConfig.ClientSessionCache = getClientSessionCache()
|
||||||
|
|
Loading…
Reference in a new issue