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:
易安
2026-03-21 14:01:11 +00:00
committed by GitHub
parent cd53f7d502
commit ad4fbafc4b
+1 -1
View File
@@ -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
}