IAC binary
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 36s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m33s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
Deon George 2025-01-31 00:16:16 +11:00
parent 5f217291c5
commit e0d2b11b07

View File

@ -940,10 +940,11 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
if ($ch === 0xff) { if ($ch === 0xff) {
Log::debug(sprintf('%s:- TELNET IAC',self::LOGKEY)); Log::debug(sprintf('%s:- TELNET IAC',self::LOGKEY));
$iaccmd = NULL;
// Peek for the next 2 chars // Peek for the next 2 chars
do { do {
$iac = $this->client->read(10,1,MSG_PEEK); $iac = $this->client->read(10,1,MSG_PEEK);
$iaccmd = NULL; Log::debug(sprintf('%s: - IAC LOOP',self::LOGKEY,['iac'=>ord($iac),'cmd'=>$iaccmd)]);
switch (ord($iac)) { switch (ord($iac)) {
case 0x00: case 0x00:
@ -994,16 +995,16 @@ final class EMSI extends BaseProtocol implements CRCInterface,ZmodemInterface
default: default:
Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac))); Log::debug(sprintf('%s: - IAC [%02x]',self::LOGKEY,ord($iac)));
$ch = $iac; $ch = ord($iac);
$iac = NULL; $iac = NULL;
} }
if ($iaccmd) { if ($iaccmd) {
$iac = $this->client->read_ch(10); $iac = ord($this->client->read_ch(10));
$ch = NULL; $ch = NULL;
} elseif (is_null($ch)) { } elseif (is_null($ch)) {
$ch = $this->client->read_ch(10); $ch = ord($this->client->read_ch(10));
} }
} while (! is_null($iac)); } while (! is_null($iac));