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()