Simplified logging and fix BINKP issue when receiving less than the blksize
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user