INNER CODE UNIT · Rust
Some
CluvexStudio/Aether · aether/src/lib.rs:289
if let Some(value) = lookup("AETHER_WIW_OUTER_PEER") {
chosen.outer = Some(parse_endpoint(&value)?);
}
if let Some(value) = lookup("AETHER_WIW_INNER_PEER") {
chosen.inner = Some(parse_endpoint(&value)?);
}
chosen.checked()
}
fn wiw_endpoints_from_env() -> Result<WiwEndpoints> {
wiw_endpoints_of(&env_value)
}
/// `--peer` and `--wg-peer` are older than the warp-in-warp settings and the
/// guides already pair them with `--gool`, so they still name the outer hop.
fn wiw_endpoints_with_fallback(lookup: &dyn Fn(&str) -> Option<String>) -> Result<WiwEndpoints> {