From f006d829f4d6516141152bc5c1b80cb7d670cb44 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 27 Jun 2024 09:09:47 +1000 Subject: [PATCH] Fix for originating calls and not recognising that the remote accepted our password --- app/Classes/Node.php | 4 +++- app/Classes/Protocol/Binkp.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Classes/Node.php b/app/Classes/Node.php index 677059a..90807af 100644 --- a/app/Classes/Node.php +++ b/app/Classes/Node.php @@ -289,7 +289,9 @@ class Node Log::debug(sprintf('%s:- Making sure we called [%s] from [%s]',self::LOGKEY,$this->originate->ftn,$this->ftns->pluck('ftn')->join(','))); - return $this->ftns->pluck('ftn')->contains($this->originate->ftn); + $this->authed = $this->ftns->pluck('ftn')->contains($this->originate->ftn); + + return $this->authed; } public function optionClear(int $key): void diff --git a/app/Classes/Protocol/Binkp.php b/app/Classes/Protocol/Binkp.php index 82438ea..94c4401 100644 --- a/app/Classes/Protocol/Binkp.php +++ b/app/Classes/Protocol/Binkp.php @@ -1533,7 +1533,7 @@ final class Binkp extends BaseProtocol } else { // @todo We should only send netmail if unauthenticated - netmail that is direct to this node (no routing) - Log::debug(sprintf('%s:- Not AUTHed so not looking for mail, but we know these akas [%s]',self::LOGKEY,$node->aka_remote->pluck('ftn')->join(','))); + Log::alert(sprintf('%s:- Not AUTHed so not looking for mail, but we know these akas [%s]',self::LOGKEY,$node->aka_remote->pluck('ftn')->join(','))); } }