Automatically mark idle nodes HOLD/DOWN/DE-LIST. Automatically validate presented addresses.
This commit is contained in:
@@ -186,6 +186,8 @@ class Page
|
||||
$this->text .= $text;
|
||||
|
||||
$this->text_right = $right;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -426,8 +426,11 @@ abstract class Protocol
|
||||
|
||||
if ($so && $so->exists) {
|
||||
foreach ($this->node->aka_other as $aka)
|
||||
if (! Address::findFTN($aka))
|
||||
if (! Address::findFTN($aka)) {
|
||||
Address::createFTN($aka,$so);
|
||||
$o->validated = TRUE;
|
||||
$o->save();
|
||||
}
|
||||
|
||||
// Log session in DB
|
||||
$slo = new SystemLog;
|
||||
|
@@ -711,6 +711,11 @@ final class Binkp extends BaseProtocol
|
||||
|
||||
} else {
|
||||
Log::info(sprintf('%s:- Got AKA [%s]',self::LOGKEY,$rem_aka));
|
||||
|
||||
// We'll update this address status
|
||||
$o->validated = TRUE;
|
||||
$o->role &= ~(Address::NODE_HOLD|Address::NODE_DOWN);
|
||||
$o->save();
|
||||
}
|
||||
|
||||
} catch (InvalidFTNException $e) {
|
||||
|
Reference in New Issue
Block a user