mirror of
https://github.com/XTLS/REALITY.git
synced 2025-08-22 14:38:35 +00:00
fix: add check for existing sni.(I guess if fingerprint and sni already exist than all sni already processed)
This commit is contained in:
parent
f95e393ceb
commit
58ea65fd17
@ -28,7 +28,11 @@ func InitAllRecords(config *Config) {
|
|||||||
|
|
||||||
func DetectPostHandshakeRecordsLens(config *Config, fingerprint string) map[string][]int {
|
func DetectPostHandshakeRecordsLens(config *Config, fingerprint string) map[string][]int {
|
||||||
if GlobalPostHandshakeRecordsLens != nil && GlobalPostHandshakeRecordsLens[fingerprint] != nil {
|
if GlobalPostHandshakeRecordsLens != nil && GlobalPostHandshakeRecordsLens[fingerprint] != nil {
|
||||||
return GlobalPostHandshakeRecordsLens[fingerprint]
|
for sni := range config.ServerNames {
|
||||||
|
if GlobalPostHandshakeRecordsLens[fingerprint][sni] != nil {
|
||||||
|
return GlobalPostHandshakeRecordsLens[fingerprint]
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
GlobalPostHandshakeRecordsLock.Lock()
|
GlobalPostHandshakeRecordsLock.Lock()
|
||||||
|
Loading…
Reference in New Issue
Block a user