Detect when we dont have an address in a domain, and pick the first domain address even if we are not in the zone.
This commit is contained in:
@@ -205,6 +205,10 @@ final class Echomail extends Model implements Packet
|
||||
$o->origin = $this->origin;
|
||||
|
||||
$sysaddress = Setup::findOrFail(config('app.id'))->system->match($this->fftn->zone)->first();
|
||||
|
||||
if (! $sysaddress)
|
||||
throw new \Exception(sprintf('%s:! We dont have an address in this network? (%s)',self::LOGKEY,$this->fftn->zone->domain->name));
|
||||
|
||||
$o->seenby = $this->seenby->push($sysaddress)->unique()->pluck('ftn2d');
|
||||
|
||||
// Add our address to the path and seenby
|
||||
|
Reference in New Issue
Block a user