More work to decommission rogue_path
This commit is contained in:
@@ -429,17 +429,14 @@ abstract class Protocol
|
||||
));
|
||||
|
||||
// Add unknown FTNs to the DB
|
||||
if ($this->node->aka_remote_authed->count()) {
|
||||
$so = $this->node->aka_remote_authed->first()->system;
|
||||
|
||||
} else {
|
||||
$so = System::where('name','Discovered System')->first();
|
||||
}
|
||||
$so = ($this->node->aka_remote_authed->count())
|
||||
? $this->node->aka_remote_authed->first()->system
|
||||
: System::createUnknownSystem();
|
||||
|
||||
if ($so && $so->exists) {
|
||||
foreach ($this->node->aka_other as $aka) {
|
||||
Address::findFTN($aka,TRUE,$so);
|
||||
}
|
||||
foreach ($this->node->aka_other as $aka)
|
||||
if (! Address::findFTN($aka))
|
||||
Address::createFTN($aka,$so);
|
||||
|
||||
// Log session in DB
|
||||
$slo = new SystemLog;
|
||||
|
Reference in New Issue
Block a user