disable UPnP port-punching until it's proven robust

This commit is contained in:
caryoscelus 2022-05-17 17:45:26 +04:00
parent bfc7223991
commit c5e8841d0f
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ class PeerPortchecker(object):
return urllib.request.urlopen(req, timeout=20.0)
def portOpen(self, port):
self.log.info("Trying to open port using UpnpPunch...")
self.log.info("Not trying to open port using UpnpPunch until it's proven robust...")
return False
try:
UpnpPunch.ask_to_open_port(port, 'ZeroNet', retries=3, protos=["TCP"])