aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/connect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/connect.rs')
-rw-r--r--azalea-protocol/src/connect.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs
index fd599ff8..85fc643e 100644
--- a/azalea-protocol/src/connect.rs
+++ b/azalea-protocol/src/connect.rs
@@ -299,6 +299,7 @@ impl Display for Proxy {
}
}
+#[cfg(feature = "online-mode")]
impl From<Proxy> for reqwest::Proxy {
fn from(proxy: Proxy) -> Self {
reqwest::Proxy::all(proxy.to_string())