Matthew R Kasun 2 éve
szülő
commit
8e5545579b
2 módosított fájl, 1 hozzáadás és 5 törlés
  1. 1 3
      go.mod
  2. 0 2
      logic/relay.go

+ 1 - 3
go.mod

@@ -43,7 +43,6 @@ require (
 require (
 	github.com/devilcove/httpclient v0.6.0
 	github.com/guumaster/tablewriter v0.0.10
-	github.com/kr/pretty v0.3.1
 	github.com/matryer/is v1.4.1
 	github.com/olekukonko/tablewriter v0.0.5
 	github.com/spf13/cobra v1.7.0
@@ -53,9 +52,8 @@ require (
 	cloud.google.com/go/compute/metadata v0.2.1 // indirect
 	github.com/go-jose/go-jose/v3 v3.0.0 // indirect
 	github.com/inconshreveable/mousetrap v1.1.0 // indirect
-	github.com/kr/text v0.2.0 // indirect
+	github.com/kr/pretty v0.3.1 // indirect
 	github.com/rivo/uniseg v0.2.0 // indirect
-	github.com/rogpeppe/go-internal v1.9.0 // indirect
 	github.com/spf13/pflag v1.0.5 // indirect
 )
 

+ 0 - 2
logic/relay.go

@@ -10,13 +10,11 @@ import (
 	"github.com/gravitl/netmaker/logger"
 	"github.com/gravitl/netmaker/logic/acls/nodeacls"
 	"github.com/gravitl/netmaker/models"
-	"github.com/kr/pretty"
 	"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
 )
 
 // CreateRelay - creates a relay
 func CreateRelay(relay models.RelayRequest) ([]models.Client, models.Node, error) {
-	pretty.Println("relay request", relay)
 	var relayedClients []models.Client
 	node, err := GetNodeByID(relay.NodeID)
 	if err != nil {