827c13b69e
dont build netstack in CI additional rust 2024 fixes fixes removed temp.rs first round of cleanup removed duplicated NS types moved gateway probe to the monorepo
11 lines
340 B
Rust
11 lines
340 B
Rust
// Copyright 2023 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use crate::ExitPolicy;
|
|
use crate::policy::PolicyError;
|
|
use reqwest::IntoUrl;
|
|
|
|
pub async fn get_exit_policy(url: impl IntoUrl) -> Result<ExitPolicy, PolicyError> {
|
|
ExitPolicy::parse_from_torrc(reqwest::get(url).await?.text().await?)
|
|
}
|