disable UPnP in Python3 temporally

This commit is contained in:
Kashiko Koibumi 2024-05-31 01:15:20 +09:00
parent f07af4e803
commit e1661162b6

View File

@ -4,6 +4,7 @@ Complete UPnP port forwarding implementation in separate thread.
Reference: http://mattscodecave.com/posts/using-python-and-upnp-to-forward-a-port
"""
import six
from six.moves import http_client as httplib
import re
import socket
@ -221,6 +222,10 @@ class uPnPThread(StoppableThread):
def run(self):
"""Start the thread to manage UPnP activity"""
if six.PY3:
logger.warning("UPnP is disabled currently, due to incompleted migration to Python3.")
return
logger.debug("Starting UPnP thread")
logger.debug("Local IP: %s", self.localIP)
lastSent = 0