From: ueno Date: Sun, 1 Jun 2003 20:53:09 +0000 (+0000) Subject: Fixed. X-Git-Tag: riece-0_0_3~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=3d9aa5cba53ccde1068c495079a1811a3d72c905;p=elisp%2Friece.git Fixed. --- diff --git a/lisp/riece-rdcc.el b/lisp/riece-rdcc.el index f1a5f95..4e41294 100644 --- a/lisp/riece-rdcc.el +++ b/lisp/riece-rdcc.el @@ -44,7 +44,7 @@ Only used for sending files." unless " address " sock = UDPSocket.new sock.connect('164.46.176.4', 7) # www.unixuser.org/echo - address = sock.getsockname[4 .. 8].unpack('CCCC').join('.') + address = sock.getsockname[4 .. 7].unpack('CCCC').join('.') end server = TCPServer.new(address, 0) puts(\"#{server.addr[3].split(/\\./).collect{|c| c.to_i}.pack('CCCC').unpack('N')[0]} #{server.addr[1]}\")