From f90825ddaeed077cc0907ffbe9b1cc170cdf6369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 28 Feb 2023 19:51:37 +0800 Subject: [PATCH] Fix config clone (#3) --- common.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common.go b/common.go index bca6d04..e8aa246 100644 --- a/common.go +++ b/common.go @@ -800,6 +800,17 @@ func (c *Config) Clone() *Config { c.mutex.RLock() defer c.mutex.RUnlock() return &Config{ + DialContext: c.DialContext, + Show: c.Show, + Type: c.Type, + Dest: c.Dest, + Xver: c.Xver, + ServerNames: c.ServerNames, + PrivateKey: c.PrivateKey, + MinClientVer: c.MinClientVer, + MaxClientVer: c.MaxClientVer, + MaxTimeDiff: c.MaxTimeDiff, + ShortIds: c.ShortIds, Rand: c.Rand, Time: c.Time, Certificates: c.Certificates,