Save UPnP externa port after creating mapping
This commit is contained in:
parent
cd0972c0f3
commit
e15d9e3e03
|
@ -284,6 +284,7 @@ class uPnPThread(threading.Thread, StoppableThread):
|
||||||
shared.extPort = extPort
|
shared.extPort = extPort
|
||||||
self.extPort = extPort
|
self.extPort = extPort
|
||||||
BMConfigParser().set('bitmessagesettings', 'extport', str(extPort))
|
BMConfigParser().set('bitmessagesettings', 'extport', str(extPort))
|
||||||
|
BMConfigParser().save()
|
||||||
break
|
break
|
||||||
except UPnPError:
|
except UPnPError:
|
||||||
logger.debug("UPnP error: ", exc_info=True)
|
logger.debug("UPnP error: ", exc_info=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user