Rev2091, Port opening error should not prevent ZeroNet startup
This commit is contained in:
parent
e291555e60
commit
de363b57ce
2 changed files with 3 additions and 4 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.5.5"
|
||||
self.rev = 2090
|
||||
self.rev = 2091
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -72,9 +72,8 @@ class FileServer(ConnectionServer):
|
|||
self.log.info("Trying to open port using UpnpPunch...")
|
||||
try:
|
||||
UpnpPunch.ask_to_open_port(self.port, 'ZeroNet', retries=3, protos=["TCP"])
|
||||
except (UpnpPunch.UpnpError, UpnpPunch.IGDError, socket.error) as err:
|
||||
self.log.error("UpnpPunch run error: %s" %
|
||||
Debug.formatException(err))
|
||||
except Exception as err:
|
||||
self.log.error("UpnpPunch run error: %s" % Debug.formatException(err))
|
||||
return False
|
||||
|
||||
if self.testOpenport(port)["result"] is True:
|
||||
|
|
Loading…
Reference in a new issue