% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/infra__tor_options.R
\name{.normalize_tor_registry_options}
\alias{.normalize_tor_registry_options}
\title{Normalize Tor registry settings}
\usage{
.normalize_tor_registry_options(
  registry_path = NULL,
  enable = ASA_TOR_REGISTRY_ENABLED,
  bad_ttl = ASA_TOR_BAD_TTL,
  good_ttl = ASA_TOR_GOOD_TTL,
  overuse_threshold = ASA_TOR_OVERUSE_THRESHOLD,
  overuse_decay = ASA_TOR_OVERUSE_DECAY,
  max_rotation_attempts = ASA_TOR_MAX_ROTATION_ATTEMPTS,
  ip_cache_ttl = ASA_TOR_IP_CACHE_TTL,
  create_parent_for_custom = FALSE
)
}
\arguments{
\item{registry_path}{Registry path (NULL/"" for default)}

\item{enable}{Enable/disable registry tracking}

\item{bad_ttl}{Seconds to keep a bad/tainted exit before reuse}

\item{good_ttl}{Seconds to treat an exit as good before refreshing}

\item{overuse_threshold}{Maximum recent uses before treating an exit as overloaded}

\item{overuse_decay}{Window (seconds) for counting recent uses}

\item{max_rotation_attempts}{Maximum rotations to find a clean exit}

\item{ip_cache_ttl}{Seconds to cache exit IP lookups}

\item{create_parent_for_custom}{If TRUE, create parent dir for custom paths}
}
\value{
List with normalized fields (including resolved registry_path)
}
\description{
Shared helper used by tor_options() and configure_tor_registry() to keep
defaults and type coercions consistent.
}
\keyword{internal}
