From e1661162b66574abd30ddb84203c9a076cfbafa6 Mon Sep 17 00:00:00 2001 From: Kashiko Koibumi Date: Fri, 31 May 2024 01:15:20 +0900 Subject: [PATCH] disable UPnP in Python3 temporally --- src/upnp.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/upnp.py b/src/upnp.py index fcaee6f7..e3cb04bd 100644 --- a/src/upnp.py +++ b/src/upnp.py @@ -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