]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_dht_Khashmir/krpc.py
Made the DHT bootstrapping use IPs instead of DNS names.
[quix0rs-apt-p2p.git] / apt_dht_Khashmir / krpc.py
index 8910ac5033539aa5558be09166b0e47beeb38b32..8972c6c2102322acd36d4bf96a4cc7972ec1e838 100644 (file)
@@ -56,7 +56,7 @@ class hostbroker(protocol.DatagramProtocol):
 
 ## connection
 class KRPC:
-    noisy = 0
+    noisy = 1
     def __init__(self, addr, server, transport):
         self.transport = transport
         self.factory = server
@@ -72,8 +72,8 @@ class KRPC:
             if self.noisy:
                 print "response decode error: " + `e`
         else:
-            #if self.noisy:
-            #    print msg
+            if self.noisy:
+                print msg
             # look at msg type
             if msg[TYP]  == REQ:
                 ilen = len(str)