mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 17:29:15 +08:00
fix keepalive conversion type
This commit is contained in:
@@ -243,7 +243,7 @@ func SetNodeDefaults(node *models.Node) {
|
||||
}
|
||||
|
||||
if node.PersistentKeepalive == 0 {
|
||||
node.PersistentKeepalive = time.Duration(parentNetwork.DefaultKeepalive)
|
||||
node.PersistentKeepalive = time.Second * time.Duration(parentNetwork.DefaultKeepalive)
|
||||
}
|
||||
if node.PostUp == "" {
|
||||
postup := parentNetwork.DefaultPostUp
|
||||
|
Reference in New Issue
Block a user