r279 - /debtorrent/trunk/DebTorrent/BT1/NatCheck.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Wed Aug 22 20:09:43 UTC 2007
Author: camrdale-guest
Date: Wed Aug 22 20:09:43 2007
New Revision: 279
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=279
Log:
Fix a bug in the NAT checker.
Modified:
debtorrent/trunk/DebTorrent/BT1/NatCheck.py
Modified: debtorrent/trunk/DebTorrent/BT1/NatCheck.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/NatCheck.py?rev=279&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/NatCheck.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/NatCheck.py Wed Aug 22 20:09:43 2007
@@ -6,6 +6,8 @@
"""Check if a peer is unreachable behind a NAT.
+ at type logger: C{logging.Logger}
+ at var logger: the logger to send all log messages to for this module
@type CHECK_PEER_ID_ENCRYPTED: C{boolean}
@var CHECK_PEER_ID_ENCRYPTED: whether to check if connecting peers are encrypted
@@ -17,6 +19,9 @@
from DebTorrent.__init__ import protocol_name
from binascii import b2a_hex
import struct
+import logging
+
+logger = logging.getLogger('DebTorrent.BT1.NatCheck')
CHECK_PEER_ID_ENCRYPTED = True
More information about the Debtorrent-commits
mailing list