Since we know the zone, we know the domain name when parsing addresses

This commit is contained in:
Deon George 2023-10-26 11:14:54 +11:00
parent a886a389a8
commit 7d82cbcf12
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ trait ParseAddresses
// If domain should be flattened, look for node regardless of zone (within the list of zones for the domain)
$ao = ($zone->domain->flatten)
? Address::findZone($zone->domain,$net&DomainController::NUMBER_MAX,$node&DomainController::NUMBER_MAX,0)
: Address::findFTN(sprintf('%d:%d/%d',$zone->zone_id,$net&DomainController::NUMBER_MAX,$node&DomainController::NUMBER_MAX));
: Address::findFTN(sprintf('%d:%d/%d@%s',$zone->zone_id,$net&DomainController::NUMBER_MAX,$node&DomainController::NUMBER_MAX,$zone->domain->name));
switch ($type) {
case 'seenby':