various bug, improve smtp

This commit is contained in:
Matt Hill
2026-03-05 18:28:34 -07:00
parent 8fdeeab5bb
commit 3901d38d65
15 changed files with 442 additions and 272 deletions

View File

@@ -324,6 +324,14 @@ function enabledAddresses(addr: DerivedAddressInfo): HostnameInfo[] {
})
}
/**
* Filters out localhost and IPv6 link-local hostnames from a list.
* Equivalent to the `nonLocal` filter on `Filled` addresses.
*/
export function filterNonLocal(hostnames: HostnameInfo[]): HostnameInfo[] {
return filterRec(hostnames, nonLocalFilter, false)
}
export const filledAddress = (
host: Host,
addressInfo: AddressInfo,