0
0
mirror of https://github.com/XTLS/REALITY.git synced 2025-08-22 14:38:35 +00:00

Fix config clone (#3)

This commit is contained in:
世界 2023-02-28 19:51:37 +08:00 committed by GitHub
parent 524506d975
commit f90825ddae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,