移除 machineid
This commit is contained in:
@ -33,7 +33,6 @@ import (
|
||||
"golang.org/x/text/encoding/simplifiedchinese"
|
||||
"golang.org/x/text/transform"
|
||||
|
||||
"github.com/denisbrodbeck/machineid"
|
||||
"github.com/gofrs/uuid"
|
||||
errors2 "github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
@ -436,10 +435,6 @@ func VerifyRSA(plainText, signText []byte, rsaPublicKey string) bool {
|
||||
return err == nil
|
||||
}
|
||||
|
||||
func GetMachineId() (string, error) {
|
||||
return machineid.ID()
|
||||
}
|
||||
|
||||
// GetAvailablePort 获取可用端口
|
||||
func GetAvailablePort() (int, error) {
|
||||
addr, err := net.ResolveTCPAddr("tcp", "localhost:0")
|
||||
|
Reference in New Issue
Block a user