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 cdae14f commit d9d6f7eCopy full SHA for d9d6f7e
iroh-relay/src/node_info.rs
@@ -41,13 +41,9 @@ use std::{
41
};
42
43
use anyhow::{anyhow, Result};
44
-#[cfg(not(wasm_browser))]
45
use iroh_base::{NodeAddr, NodeId, RelayUrl, SecretKey};
46
47
use url::Url;
48
49
50
-
51
/// The DNS name for the iroh TXT record.
52
pub const IROH_TXT_NAME: &str = "_iroh";
53
@@ -560,7 +556,7 @@ pub(crate) fn ensure_iroh_txt_label(name: String) -> String {
560
556
if parts.next() == Some(IROH_TXT_NAME) {
561
557
name
562
558
} else {
563
- [IROH_TXT_NAME, ".", &name].join(".")
559
+ format!("{}.{}", IROH_TXT_NAME, name)
564
}
565
566
0 commit comments