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)
279 279
      af = (@sock.peeraddr)[0]
280 280
      if af == "AF_INET"
281 281
	hbytes = host.split(".")
282
	pbytes = [port / 256, port % 256]
282
	pbytes = [port.div(256), port % 256]
283 283
	bytes = hbytes + pbytes
284 284
	cmd = "PORT " + bytes.join(",")
285 285
      elsif af == "AF_INET6"