mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
12 lines
385 B
Go
12 lines
385 B
Go
package dialer
|
|
|
|
import "github.com/metacubex/mihomo/constant/features"
|
|
|
|
func init() {
|
|
// According to MSDN, this option is available since Windows 10, 1607
|
|
// https://msdn.microsoft.com/en-us/library/windows/desktop/ms738596(v=vs.85).aspx
|
|
if features.WindowsMajorVersion < 10 || (features.WindowsMajorVersion == 10 && features.WindowsBuildNumber < 14393) {
|
|
DisableTFO = true
|
|
}
|
|
}
|