Skip to content

Commit 0d1e395

Browse files
committed
Removed HTTPS restriction for the mux loader
1 parent cc7e87b commit 0d1e395

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • crates/common/src/config

crates/common/src/config/mux.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use alloy::{
1313
};
1414
use eyre::{bail, ensure, Context};
1515
use serde::{Deserialize, Serialize};
16-
use tracing::{debug, info};
16+
use tracing::{debug, info, warn};
1717
use url::Url;
1818

1919
use super::{load_optional_env_var, PbsConfig, RelayConfig, MUX_PATH_ENV};
@@ -186,7 +186,9 @@ impl MuxKeysLoader {
186186
Self::HTTP { url } => {
187187
let url = Url::parse(url).wrap_err("failed to parse mux keys URL")?;
188188
if url.scheme() != "https" {
189-
bail!("mux keys URL must use HTTPS");
189+
warn!(
190+
"Mux keys URL {url} is insecure; consider using HTTPS if possible instead"
191+
);
190192
}
191193
let client = reqwest::ClientBuilder::new().timeout(http_timeout).build()?;
192194
let response = client.get(url).send().await?;

0 commit comments

Comments
 (0)