From: Rene Paulokat Date: 2005-08-16T10:32:09+09:00 Subject: Re: XMLRPC::Server.set_valid_ip On Tue, Aug 16, 2005 at 10:06:13AM +0900, Daniel Berger wrote: > Rene Paulokat wrote: > > hi, > > i run into trouble trying to restrict connection-attempts to > > XMLRPC::Server using the method set_valid_ip > > without using this restriction everything runs smoothe. > I think you need to splat the "ips" variable, e.g. > @@server.set_valid_ip(*ips). thanks for your answer, but meanwhile i think my problem is quite mysterious, if i start little testserver: --- snip --- require 'xmlrpc/server' class TestServer < XMLRPC::Server def foo puts "bar" end end t = TestServer.new(8080) t.add_introspection ip = ["127.0.0.1","192.168.30.42"] t.set_valid_ip(*ip) t.serve --- snap --- result is: /usr/local/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc': HTTP-Error: 500 Internal Server Error (RuntimeError) from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:409:in `call2' from /usr/local/lib/ruby/1.8/xmlrpc/client.rb:399:in `call' from client.rb:7 my client just queries for 'system.listMethods' - if i comment out set_valid_ip - i get the expected result. hrm, dunno rene -- GnuPG fingerprint = E883 D359 3F56 51AF 0294 8BEB 16B3 15BD 8FC7 8254 fetch www.so36.net/~rp/rene.asc