diff --git a/controllers/migrate.go b/controllers/migrate.go index fa03fccf9..6bf2e540f 100644 --- a/controllers/migrate.go +++ b/controllers/migrate.go @@ -199,7 +199,7 @@ func convertLegacyNode(legacy models.LegacyNode, hostID uuid.UUID) models.Node { node.IsRelay = false node.RelayedNodes = []string{} node.DNSOn = models.ParseBool(legacy.DNSOn) - node.PersistentKeepalive = time.Duration(legacy.PersistentKeepalive) + node.PersistentKeepalive = time.Duration(int64(time.Second) * int64(legacy.PersistentKeepalive)) node.LastModified = time.Now() node.ExpirationDateTime, _ = time.Parse(strconv.Itoa(int(legacy.ExpirationDateTime)), "0") node.EgressGatewayNatEnabled = models.ParseBool(legacy.EgressGatewayNatEnabled)