Paul Klumpp 12 роки тому
батько
коміт
02f4447e65
1 змінених файлів з 2 додано та 0 видалено
  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