Browse Source

r48: fixed rcontool to use new version of IP

master
erikh 16 years ago
parent
commit
b87f7f0c4c
  1. 4
      bin/rcontool

4
bin/rcontool

@ -174,13 +174,13 @@ def get_options
s2 = ARGV.shift
begin
options.ip_address = IP::Address.new(s1)
options.ip_address = IP::Address::IPv4.new(s1)
options.command = s2
rescue IP::AddressException => e
# attempt to split it first... not sure how to best handle this situation
begin
ip,port = s1.split(/:/, 2)
options.ip_address = IP::Address.new(ip)
options.ip_address = IP::Address::IPv4.new(ip)
options.port = port.to_i
options.command = s2
rescue Exception => e

Loading…
Cancel
Save