From bb17b35d3e58890b66c113ca50f514263b479621 Mon Sep 17 00:00:00 2001 From: terrafrost Date: Tue, 14 Sep 2021 09:05:41 -0500 Subject: [PATCH] preferentially use SFTPv3, since that's waaaay more tested than any other version --- phpseclib/Net/SFTP.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index f414d3e8..15449f5b 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -205,6 +205,15 @@ class Net_SFTP extends Net_SSH2 */ var $defaultVersion; + /** + * Preferred SFTP version + * + * @var int + * @see self::_initChannel() + * @access private + */ + var $preferredVersion = 3; + /** * Current working directory *