mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-11 14:34:16 +08:00
Add SRV Records to help DAV autodiscovery (closes #1565)
This commit is contained in:
parent
1c1c9f559c
commit
2a5de2a987
1 changed files with 7 additions and 5 deletions
|
@ -184,11 +184,13 @@ impl DnsManagement for Server {
|
|||
}
|
||||
("http", _) if is_tls => {
|
||||
has_https = true;
|
||||
records.push(DnsRecord {
|
||||
typ: "SRV".to_string(),
|
||||
name: format!("_jmap._tcp.{domain_name}.",),
|
||||
content: format!("0 1 {port} {server_name}."),
|
||||
});
|
||||
for service in ["jmap", "caldavs", "carddavs"] {
|
||||
records.push(DnsRecord {
|
||||
typ: "SRV".to_string(),
|
||||
name: format!("_{service}._tcp.{domain_name}.",),
|
||||
content: format!("0 1 {port} {server_name}."),
|
||||
});
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue