mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 15:26:04 +08:00
Net 662 convert pka to seconds vice nsec (#2627)
* force listenport/persisentkeepalive to defaults if 0 during migration * convert pka to seconds vice nsec
This commit is contained in:
parent
d767da16c6
commit
09b55286dd
|
@ -154,7 +154,7 @@ func convertLegacyHostNode(legacy models.LegacyNode) (models.Host, models.Node)
|
|||
host.IsDocker = models.ParseBool(legacy.IsDocker)
|
||||
host.IsK8S = models.ParseBool(legacy.IsK8S)
|
||||
host.IsStatic = models.ParseBool(legacy.IsStatic)
|
||||
host.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive)
|
||||
host.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive) * time.Second
|
||||
if host.PersistentKeepalive == 0 {
|
||||
host.PersistentKeepalive = models.DefaultPersistentKeepAlive
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue