diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index da35a603..3dd2ac7c 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -1301,8 +1301,9 @@ class SSH2 ]; // some SSH servers have buggy implementations of some of the above algorithms - switch ($this->server_identifier) { - case 'SSH-2.0-SSHD': + switch (true) { + case $this->server_identifier == 'SSH-2.0-SSHD': + case substr($this->server_identifier, 0, 13) == 'SSH-2.0-DLINK': $mac_algorithms = array_values(array_diff( $mac_algorithms, ['hmac-sha1-96', 'hmac-md5-96']