From 66d6c714418c31e0fe4f6d87b168da2207b3225f Mon Sep 17 00:00:00 2001 From: 0xdcarns Date: Tue, 11 Jan 2022 10:44:49 -0500 Subject: [PATCH] adjusting client join --- controllers/auth_grpc.go | 3 +++ netclient/functions/join.go | 1 + 2 files changed, 4 insertions(+) diff --git a/controllers/auth_grpc.go b/controllers/auth_grpc.go index 6f890803..c1c10716 100644 --- a/controllers/auth_grpc.go +++ b/controllers/auth_grpc.go @@ -4,6 +4,7 @@ import ( "context" "encoding/json" "errors" + "log" "github.com/gravitl/netmaker/database" "github.com/gravitl/netmaker/functions" @@ -118,6 +119,8 @@ func (s *NodeServiceServer) Login(ctx context.Context, req *nodepb.Object) (*nod password := reqNode.Password macaddress := reqNode.MacAddress + log.Printf("authing node: %v \n", reqNode) + var result models.NodeAuth var err error // err := errors.New("generic server error") diff --git a/netclient/functions/join.go b/netclient/functions/join.go index f5c38c85..c68331dd 100644 --- a/netclient/functions/join.go +++ b/netclient/functions/join.go @@ -127,6 +127,7 @@ func JoinNetwork(cfg config.ClientConfig, privateKey string) error { if cfg.Node.IsServer != "yes" { ncutils.Log("joining " + cfg.Network + " at " + cfg.Server.GRPCAddress) var wcclient nodepb.NodeServiceClient + log.Printf("used: %v\n", postnode) conn, err := grpc.Dial(cfg.Server.GRPCAddress, ncutils.GRPCRequestOpts(cfg.Server.GRPCSSL))