fix keepalive conversion type

This commit is contained in:
Abhishek Kondur
2022-12-30 11:43:48 +05:30
parent 2c2b3a4b9b
commit 8a9241d5e2
2 changed files with 3 additions and 3 deletions

View File

@@ -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