Only consider NR mode if the offset presented is -1
This commit is contained in:
@@ -13,7 +13,7 @@ use App\Classes\Crypt;
|
||||
use App\Classes\Protocol as BaseProtocol;
|
||||
use App\Classes\Sock\SocketClient;
|
||||
use App\Classes\Sock\SocketException;
|
||||
use App\Models\{Address,Setup};
|
||||
use App\Models\Address;
|
||||
|
||||
final class Binkp extends BaseProtocol
|
||||
{
|
||||
@@ -900,7 +900,7 @@ final class Binkp extends BaseProtocol
|
||||
Log::debug(sprintf('%s:- Getting file from offset [%ld]',self::LOGKEY,$file['offs']));
|
||||
//$this->msgs(self::BPM_GET,sprintf('%s %ld',$this->recv->name_size_time,($file['offs'] < 0) ? 0 : $file['offs']));
|
||||
|
||||
if (((int)$file['offs'] !== -1) && (! $this->capGet(self::F_NOREL,self::O_THEY))) {
|
||||
if (((int)$file['offs'] === -1) && (! $this->capGet(self::F_NOREL,self::O_THEY))) {
|
||||
Log::debug(sprintf('%s:- Assuming the remote wants NR mode, since offset is [%d] and they didnt specify an OPT with it',self::LOGKEY,$file['offs']));
|
||||
$this->capSet(self::F_NOREL,self::O_THEY);
|
||||
}
|
||||
|
Reference in New Issue
Block a user