Read more: https://tools.ietf.org/id/draft-bryan-ftp-range-03.html We use extension library luasocket Edit file: https://github.com/lunarmodules/luasocket/blob/master/src/ftp.lua Local location: /usr/share/lua/5.1/socket/ftp.lua Add function: Edit function tget , add line if gett.rang then…