We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dcf17b commit 68ef9ccCopy full SHA for 68ef9cc
iroh-base/src/relay_url.rs
@@ -50,7 +50,8 @@ impl RelayUrl {
50
let mut url = self.0.deref().clone();
51
if let Some(domain) = url.domain() {
52
if let Some(stripped) = domain.strip_suffix('.') {
53
- url.set_host(Some(&stripped.to_string())).ok();
+ let stripped = stripped.to_string();
54
+ url.set_host(Some(&stripped)).ok();
55
}
56
57
url
0 commit comments