Project

General

Profile

Bug #223 ยป net_ftp_sendport_fix.patch

NoKarma (Arthur Schreiber), 07/04/2008 02:21 AM

View differences:

lib/net/ftp.rb (Arbeitskopie)
af = (@sock.peeraddr)[0]
if af == "AF_INET"
hbytes = host.split(".")
pbytes = [port / 256, port % 256]
pbytes = [port.div(256), port % 256]
bytes = hbytes + pbytes
cmd = "PORT " + bytes.join(",")
elsif af == "AF_INET6"
    (1-1/1)