Fix working out our hostname when we are an RC

This commit is contained in:
2024-10-20 11:49:34 +11:00
parent 7ba037b76d
commit 432a9bbf2b
2 changed files with 3 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ class NodelistSegment extends Dynamic
$result->push('CM');
if ($ao->system->address) {
$result->push(sprintf('INA:%s',$ao->system->address));
$result->push(sprintf('INA:%s',our_address($ao->domain)->contains($ao->id) ? our_hostname($ao) : $ao->system->address));
if (($x=$ao->system->mailers->pluck('name')->search('BINKP')) !== FALSE)
$result->push(sprintf('IBN%s',(($y=$ao->system->mailers->get($x)->pivot->port) !== 24554) ? ':'.$y : ''));