nil pointers, update version

This commit is contained in:
0xdcarns
2021-12-11 12:07:54 -05:00
parent 548997f9ef
commit c2460c576e
3 changed files with 6 additions and 7 deletions

View File

@@ -129,7 +129,7 @@ func ServerJoin(network string, serverID string, privateKey string) error {
// ServerCheckin - runs pulls and pushes for server
func ServerCheckin(mac string, network string) error {
var serverNode *models.Node
var serverNode = &models.Node{}
var currentNode, err = GetNode(mac, network)
if err != nil {
return err