mirror of
https://github.com/XTLS/REALITY.git
synced 2026-09-27 01:10:18 +03:00
fix(record_detect): use configured network type instead of hardcoded tcp (#26)
Fixes https://github.com/XTLS/Xray-core/issues/5675
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ func DetectPostHandshakeRecordsLens(config *Config) {
|
||||
GlobalPostHandshakeRecordsLens.Store(key, []int{})
|
||||
}
|
||||
}()
|
||||
target, err := net.Dial("tcp", config.Dest)
|
||||
target, err := net.Dial(config.Type, config.Dest)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user