|
@@ -455,10 +455,14 @@ class GameServers
|
|
|
|
|
|
def get_cool_dns(iphost, ipport)
|
|
|
put_log "get_cool_dns drin"
|
|
|
- @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
|
|
|
+ cool_dns = @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
|
|
|
+ put_log "cool_dns for #{iphost}:#{ipport} is: #{cool_dns}"
|
|
|
+ return cool_dns
|
|
|
rescue
|
|
|
scanserver("#{iphost}:#{ipport}", "qw")
|
|
|
- @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
|
|
|
+ cool_dns = @gameservers.fetch("#{iphost}:#{ipport}").fetch(:cool_dns)
|
|
|
+ put_log "cool_dns for #{iphost}:#{ipport} is: #{cool_dns}"
|
|
|
+ return cool_dns
|
|
|
end
|
|
|
|
|
|
private # all following methods are private
|