diff --git a/README.md b/README.md index 8e15b7b..dc66a7f 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ Include: https://github.com/oneclickvirt/gostun ## TODO -- [ ] FreeBSD下获取不到CPU的型号,待修复 - [ ] 检测GPU相关信息,可参考[ghw](https://github.com/jaypipes/ghw) - [ ] CPUCache的信息需要矫正 - [ ] 纯IPV6环境下使用cdn反代获取平台信息 diff --git a/system/sysctl.go b/system/sysctl.go index 29b4ac6..a901317 100644 --- a/system/sysctl.go +++ b/system/sysctl.go @@ -6,7 +6,7 @@ import ( ) func checkSysctlVersion() bool { - out, err := exec.Command("sysctl", "--version").Output() + out, err := exec.Command("sysctl", "-h").Output() if err != nil { return false }