From 5181f1549932f8e76f4ced3fc62d246141eae410 Mon Sep 17 00:00:00 2001 From: Grafcube Date: Mon, 22 May 2023 14:23:40 +0530 Subject: [PATCH] Change `domain` to `host_str` (#37) --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index c5e46a9..45f6f26 100644 --- a/src/config.rs +++ b/src/config.rs @@ -156,7 +156,7 @@ impl FederationConfig { /// Returns true if the url refers to this instance. Handles hostnames like `localhost:8540` for /// local debugging. pub(crate) fn is_local_url(&self, url: &Url) -> bool { - let mut domain = url.domain().expect("id has domain").to_string(); + let mut domain = url.host_str().expect("id has domain").to_string(); if let Some(port) = url.port() { domain = format!("{}:{}", domain, port); }