Skip to content

Commit c4011b6

Browse files
committed
test
1 parent 5a5c85b commit c4011b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/device.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ impl RequestedState {
933933
.as_ref()
934934
.map(|ips| (v.hostname.0.to_owned().to_string(), ips.clone()))
935935
})
936+
.map(|(name, ips)| (format!("{name}."), ips))
936937
.collect()
937938
}
938939

@@ -957,7 +958,7 @@ impl RequestedState {
957958
})
958959
.filter(|(nick, _)| validate_nickname(nick))
959960
.fold(Records::new(), |mut records, (mut nick, ip)| {
960-
nick.0 += ".nord";
961+
nick.0 += ".nord.";
961962

962963
if let Entry::Vacant(e) = records.entry(nick.0.to_owned()) {
963964
e.insert(ip);
@@ -1599,11 +1600,11 @@ impl Runtime {
15991600
// Insert wildcard for subdomains
16001601
let wildcarded_peers: Records = peers
16011602
.iter()
1602-
.map(|(name, ip)| (format!("*.{name}"), ip.clone()))
1603+
.map(|(name, ip)| (format!("*.{name}."), ip.clone()))
16031604
.collect();
16041605
peers.extend(wildcarded_peers);
16051606

1606-
dns.upsert("nord", &peers, self.features.dns.ttl_value)
1607+
dns.upsert("nord.", &peers, self.features.dns.ttl_value)
16071608
.await
16081609
.map_err(Error::DnsResolverError)?;
16091610
}

0 commit comments

Comments
 (0)