Improvements to finding idle nodes, last_session actually only shows the last time the remote polled us
This commit is contained in:
@@ -733,6 +733,7 @@ final class Binkp extends BaseProtocol
|
||||
Log::info(sprintf('%s:- Got AKA [%s]',self::LOGKEY,$rem_aka));
|
||||
|
||||
// We'll update this address status
|
||||
// @todo this shouldnt be here, since we havent authenticated the node
|
||||
$o->validated = TRUE;
|
||||
$o->role &= ~(Address::NODE_HOLD|Address::NODE_DOWN);
|
||||
$o->save();
|
||||
@@ -1278,9 +1279,13 @@ final class Binkp extends BaseProtocol
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->optionGet(self::O_PWD))
|
||||
if ($this->optionGet(self::O_PWD)) {
|
||||
Log::info(sprintf('%s:- SECURE',self::LOGKEY));
|
||||
|
||||
// @todo Since we have connected, if the node was marked down/hold reset that
|
||||
// Notification::route('netmail',$ao->system->uncommon()->first()->withoutRelations())->notify(new NodeMarkedDownNetmail($ao->withoutRelations()));
|
||||
}
|
||||
|
||||
return $this->binkp_hsdone();
|
||||
}
|
||||
|
||||
@@ -1376,6 +1381,9 @@ final class Binkp extends BaseProtocol
|
||||
if ($this->node->aka_authed) {
|
||||
$this->msgs(self::BPM_OK,sprintf('%ssecure',$have_pwd ? '' : 'non-'));
|
||||
|
||||
// @todo Since we have connected, if the node was marked down/hold reset that
|
||||
// Notification::route('netmail',$ao->system->uncommon()->first()->withoutRelations())->notify(new NodeMarkedDownNetmail($ao->withoutRelations()));
|
||||
|
||||
} else {
|
||||
$this->msgs(self::OK,'non-secure');
|
||||
}
|
||||
|
@@ -1061,6 +1061,9 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
|
||||
return (self::S_REDIAL|self::S_ADDTRY);
|
||||
}
|
||||
|
||||
// @todo Since we have connected, if the node was marked down/hold reset that
|
||||
// Notification::route('netmail',$ao->system->uncommon()->first()->withoutRelations())->notify(new NodeMarkedDownNetmail($ao->withoutRelations()));
|
||||
|
||||
// @todo Lock Node AKAs
|
||||
|
||||
Log::info(sprintf('%s:- We have [%lu%s] mail, [%lu%s] files',self::LOGKEY,$this->send->mail_size,'b',$this->send->files_size,'b'));
|
||||
|
Reference in New Issue
Block a user