set PublicIp6 and sort IPs

This commit is contained in:
nikk gitanes
2022-01-20 00:54:20 +03:00
parent 3f8ee962ec
commit 705e15df48
3 changed files with 37 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import (
"os/user"
"path/filepath"
"runtime"
"sort"
"strconv"
"time"
@@ -185,6 +186,7 @@ func getDefaultFriendlyName() string {
}
}
if len(list) > 0 {
sort.Strings(list)
return ret + " " + list[0]
}
}