From 6a6b9228caeadd8c43ee549df38508233beef6cb Mon Sep 17 00:00:00 2001 From: dushixiang Date: Sun, 31 Oct 2021 17:31:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20machineid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- go.mod | 1 - server/utils/utils.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/go.mod b/go.mod index 7626b93..2f796e5 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module next-terminal go 1.16 require ( - github.com/denisbrodbeck/machineid v1.0.1 github.com/gliderlabs/ssh v0.3.3 github.com/gofrs/uuid v3.3.0+incompatible github.com/gorilla/websocket v1.4.2 diff --git a/server/utils/utils.go b/server/utils/utils.go index 4389c7a..331a858 100644 --- a/server/utils/utils.go +++ b/server/utils/utils.go @@ -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")