Fix config clone (#3)

This commit is contained in:
世界
2023-02-28 11:51:37 +00:00
committed by GitHub
parent 524506d975
commit f90825ddae
+11
View File
@@ -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,