移除 machineid

This commit is contained in:
dushixiang 2021-10-31 17:31:11 +08:00
parent 6132a05786
commit 6a6b9228ca
2 changed files with 0 additions and 6 deletions

1
go.mod
View File

@ -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

View File

@ -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")