Simplified logging and fix BINKP issue when receiving less than the blksize

This commit is contained in:
Deon George
2021-08-17 23:49:39 +10:00
parent 5bf612e5b4
commit 978843b5e3
7 changed files with 285 additions and 253 deletions

View File

@@ -23,6 +23,8 @@ use App\Models\Address;
*/
class Node
{
private const LOGKEY = 'N--';
// Remote Version
private int $version_major = 0;
private int $version_minor = 0;
@@ -156,7 +158,7 @@ class Node
*/
public function auth(string $password,string $challenge=''): int
{
Log::debug(sprintf('%s: + Start [%s]',__METHOD__,$password));
Log::debug(sprintf('%s:+ auth [%s]',self::LOGKEY,$password));
// Make sure we havent been here already
if ($this->ftns_authed->count())
@@ -177,7 +179,7 @@ class Node
}
}
Log::debug(sprintf('%s: = End [%d]',__METHOD__,$this->ftns_authed->count()));
Log::debug(sprintf('%s:= auth [%d]',self::LOGKEY,$this->ftns_authed->count()));
return $this->ftns_authed->count();
}