Commit 625c5df0 authored by szh's avatar szh

更新唯一标识为 /etc/machine-id

parent cfec11b1
...@@ -89,7 +89,7 @@ func GetLocalUUID() string { ...@@ -89,7 +89,7 @@ func GetLocalUUID() string {
} }
func GetLocalUUID2() string { func GetLocalUUID2() string {
cmd := exec.Command("dmidecode","-s","system-uuid") cmd := exec.Command("cat","/etc/machine-id")
var buf, errbuf bytes.Buffer var buf, errbuf bytes.Buffer
cmd.Stdout = &buf cmd.Stdout = &buf
cmd.Stderr = &errbuf cmd.Stderr = &errbuf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment