From f6acbaac7b3529617cef0250ee7e2cf1cf30b9a1 Mon Sep 17 00:00:00 2001 From: "X. Jason Lyu" Date: Mon, 29 Jul 2019 12:25:29 +0800 Subject: [PATCH] Fix(vmess): typo (#248) --- adapters/outbound/vmess.go | 2 +- component/vmess/vmess.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/adapters/outbound/vmess.go b/adapters/outbound/vmess.go index 825af42c..2d6d69c8 100644 --- a/adapters/outbound/vmess.go +++ b/adapters/outbound/vmess.go @@ -67,7 +67,7 @@ func NewVmess(option VmessOption) (*Vmess, error) { WebSocketPath: option.WSPath, WebSocketHeaders: option.WSHeaders, SkipCertVerify: option.SkipCertVerify, - SessionCacahe: getClientSessionCache(), + SessionCache: getClientSessionCache(), }) if err != nil { return nil, err diff --git a/component/vmess/vmess.go b/component/vmess/vmess.go index 23a7b508..6e2767ce 100644 --- a/component/vmess/vmess.go +++ b/component/vmess/vmess.go @@ -86,7 +86,7 @@ type Config struct { WebSocketPath string WebSocketHeaders map[string]string SkipCertVerify bool - SessionCacahe tls.ClientSessionCache + SessionCache tls.ClientSessionCache } // New return a Conn with net.Conn and DstAddr @@ -139,7 +139,7 @@ func NewClient(config Config) (*Client, error) { tlsConfig = &tls.Config{ ServerName: config.HostName, InsecureSkipVerify: config.SkipCertVerify, - ClientSessionCache: config.SessionCacahe, + ClientSessionCache: config.SessionCache, } if tlsConfig.ClientSessionCache == nil { tlsConfig.ClientSessionCache = getClientSessionCache()