We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc7e87b commit 0d1e395Copy full SHA for 0d1e395
1 file changed
crates/common/src/config/mux.rs
@@ -13,7 +13,7 @@ use alloy::{
13
};
14
use eyre::{bail, ensure, Context};
15
use serde::{Deserialize, Serialize};
16
-use tracing::{debug, info};
+use tracing::{debug, info, warn};
17
use url::Url;
18
19
use super::{load_optional_env_var, PbsConfig, RelayConfig, MUX_PATH_ENV};
@@ -186,7 +186,9 @@ impl MuxKeysLoader {
186
Self::HTTP { url } => {
187
let url = Url::parse(url).wrap_err("failed to parse mux keys URL")?;
188
if url.scheme() != "https" {
189
- bail!("mux keys URL must use HTTPS");
+ warn!(
190
+ "Mux keys URL {url} is insecure; consider using HTTPS if possible instead"
191
+ );
192
}
193
let client = reqwest::ClientBuilder::new().timeout(http_timeout).build()?;
194
let response = client.get(url).send().await?;
0 commit comments