Browse Source

more debug

Paul Klumpp 11 years ago
parent
commit
02f4447e65
1 changed files with 2 additions and 0 deletions
  1. 2 0
      em_server.rb

+ 2 - 0
em_server.rb

@@ -331,12 +331,14 @@ module CentralProtocolHandler
 
               # get hostname from a qw status packet! perhaps there's a DNS name inside, which we can use! fixme
               hum = qwstatus(iphost, ipport)
+              p hum
               if hum["hostname"] =~ /([\w\.]{3,}\.\w{2,4})/
                 hostnamedns = $1
                 ip_of_hostnamedns = Resolv.getaddress(hostnamedns)
 
                 if ip_of_hostnamedns && (ip_of_hostnamedns == iphost)
                   # ok, we take it.
+                  put_log "ok, we take #{hostnamedns} for #{iphost} here.."
                   domainname = hostnamedns
                 end