Bug #223 ยป net_ftp_sendport_fix.patch
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"
|