Browse Source

changing default exp time for nodes to 1000 years

afeiszli 4 years ago
parent
commit
87727c448a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/node.go

+ 2 - 2
models/node.go

@@ -84,7 +84,7 @@ func(node *Node) SetLastPeerUpdate(){
 }
 }
 
 
 func(node *Node) SetExpirationDateTime(){
 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.
     //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()
     parentGroup, _ := node.GetGroup()
 
 
-    node.ExpirationDateTime = time.Unix(1<<63-62135596801, 999999999).Unix()
+    node.ExpirationDateTime = time.Unix(33174902665, 0).Unix()
 
 
     if node.ListenPort == 0 {
     if node.ListenPort == 0 {
         node.ListenPort = parentGroup.DefaultListenPort
         node.ListenPort = parentGroup.DefaultListenPort