About: show the mail node's hostname, not its address
The address is only shown when the node has no PTR record.
This commit is contained in:
1 parent
41fb7875d0
commit
66673bc9d1
1 file changed
+2
-1
@@ -16,7 +16,8 @@ interface Nodes {
|
||||
|
||||
function mailNodeLabel(m: Nodes["mailServer"]): string {
|
||||
if (!m.address) return t("{host} does not resolve", { host: m.host });
|
||||
return m.name ? `${m.name} (${m.address})` : m.address;
|
||||
// The node's hostname; the bare address only when it has no PTR record.
|
||||
return m.name ?? m.address;
|
||||
}
|
||||
|
||||
export function AboutSettings() {
|
||||
|
||||
Reference in new issue
Block a user