|
@@ -211,6 +211,9 @@ func MakeUniqueMachineID() string {
|
|
if err != nil {
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "get machine ID failed: %v\n", err)
|
|
fmt.Fprintf(os.Stderr, "get machine ID failed: %v\n", err)
|
|
}
|
|
}
|
|
|
|
+ if len(machineid) > 48 {
|
|
|
|
+ machineid = machineid[:48] // truncate to 48 characters
|
|
|
|
+ }
|
|
|
|
|
|
return fmt.Sprintf("%s-%s", ip.String(), machineid)
|
|
return fmt.Sprintf("%s-%s", ip.String(), machineid)
|
|
}
|
|
}
|