Permalink
Browse files

fixed bug in the URL

  • Loading branch information...
1 parent f2c13bb commit 017125ebe09c9ecf4305ef74f3c7b9eaf800c3a2 @timothyandrew committed Jan 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ddns
View
4 ddns
@@ -21,8 +21,8 @@ public_ip = Net::HTTP.get(URI('http://icanhazip.com/'))
Net::HTTP.get(URI("http://#{options[:server]}:#{options[:port]}/set?name=#{options[:name]}&ip=#{public_ip}"))
EventMachine.run {
- timer = EventMachine::PeriodicTimer.new(options[:interval] * 60) do
+ timer = EventMachine::PeriodicTimer.new(options[:interval] * 60) do
public_ip = Net::HTTP.get(URI('http://icanhazip.com/'))
- Net::HTTP.get(URI("http://#{options[:host]}:#{options[:port]}/set?name=#{options[:name]}&ip=#{public_ip}"))
+ Net::HTTP.get(URI("http://#{options[:server]}:#{options[:port]}/set?name=#{options[:name]}&ip=#{public_ip}"))
end
}

0 comments on commit 017125e

Please sign in to comment.