From a2b8c1fef4c786860da42c8b012ccc4851bec100 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 30 Jun 2024 07:46:15 -0500 Subject: [PATCH] fix bad merge --- phpseclib/Net/SSH2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index b12cfa7f..df2a074c 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3037,7 +3037,7 @@ class SSH2 } try { if ($level == 1) { - $this->send_binary_packet(pack('CN', NET_SSH2_MSG_IGNORE, 0)); + $this->send_binary_packet(pack('CN', MessageType::IGNORE, 0)); } else { $this->open_channel(self::CHANNEL_KEEP_ALIVE); $this->close_channel(self::CHANNEL_KEEP_ALIVE); @@ -4041,7 +4041,7 @@ class SSH2 if ($this->bitmap & self::MASK_CONNECTED) { $elapsed = microtime(true) - $this->last_packet; if ($this->keepAlive > 0 && $elapsed >= $this->keepAlive) { - $this->send_binary_packet(pack('CN', NET_SSH2_MSG_IGNORE, 0)); + $this->send_binary_packet(pack('CN', MessageType::IGNORE, 0)); } } }