瀏覽代碼

more debug

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