From 87727c448a896673e90b58a5569e719155e2316c Mon Sep 17 00:00:00 2001 From: afeiszli Date: Fri, 9 Apr 2021 10:53:17 -0400 Subject: [PATCH] changing default exp time for nodes to 1000 years --- models/node.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/node.go b/models/node.go index 34a43e53..9af04273 100644 --- a/models/node.go +++ b/models/node.go @@ -84,7 +84,7 @@ func(node *Node) SetLastPeerUpdate(){ } func(node *Node) SetExpirationDateTime(){ - node.ExpirationDateTime = time.Unix(1<<63-62135596801, 999999999).Unix() + node.ExpirationDateTime = time.Unix(33174902665, 0).Unix() } @@ -103,7 +103,7 @@ func(node *Node) SetDefaults() { //TODO: Maybe I should make Group a part of the node struct. Then we can just query the Group object for stuff. parentGroup, _ := node.GetGroup() - node.ExpirationDateTime = time.Unix(1<<63-62135596801, 999999999).Unix() + node.ExpirationDateTime = time.Unix(33174902665, 0).Unix() if node.ListenPort == 0 { node.ListenPort = parentGroup.DefaultListenPort