Save UPnP externa port after creating mapping

This commit is contained in:
Peter Šurda 2017-02-27 15:55:59 +01:00
parent cd0972c0f3
commit e15d9e3e03
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -284,6 +284,7 @@ class uPnPThread(threading.Thread, StoppableThread):
shared.extPort = extPort
self.extPort = extPort
BMConfigParser().set('bitmessagesettings', 'extport', str(extPort))
BMConfigParser().save()
break
except UPnPError:
logger.debug("UPnP error: ", exc_info=True)