Ensure curl supports --ftp-ssl-reqd or --ssl-reqd in ftp_upload.php/ftp_list.php

Version 1.594

Bugfix
Finished

Various versions of curl support various different options to ensure FTPS is using TLS. Some support one or the other, while some don't support any. New checks in the scripts: /usr/local/directadmin/scripts/ftp_upload.php /usr/local/directadmin/scripts/ftp_list.php to use whichever is supported. SSL_REQD="" if ${CURL} --help | grep -m1 -q 'ftp-ssl-reqd'; then SSL_REQD="--ftp-ssl-reqd" elif ${CURL} --help | grep -m1 -q 'ssl-reqd'; then SSL_REQD="--ssl-reqd" fi

Interested to try DirectAdmin? Get a 30-day Free Trial!