shared.extPort is obsolete
This commit is contained in:
parent
9992626438
commit
c5ce2e36d5
|
@ -17,7 +17,6 @@ from urlparse import urlparse
|
||||||
from xml.dom.minidom import Document, parseString
|
from xml.dom.minidom import Document, parseString
|
||||||
|
|
||||||
import queues
|
import queues
|
||||||
import shared
|
|
||||||
import state
|
import state
|
||||||
import tr
|
import tr
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
|
@ -286,7 +285,6 @@ class uPnPThread(threading.Thread, StoppableThread):
|
||||||
if router.extPort is not None:
|
if router.extPort is not None:
|
||||||
deleted = True
|
deleted = True
|
||||||
self.deletePortMapping(router)
|
self.deletePortMapping(router)
|
||||||
shared.extPort = None
|
|
||||||
if deleted:
|
if deleted:
|
||||||
queues.UISignalQueue.put(('updateStatusBar', tr._translate("MainWindow", 'UPnP port mapping removed')))
|
queues.UISignalQueue.put(('updateStatusBar', tr._translate("MainWindow", 'UPnP port mapping removed')))
|
||||||
logger.debug("UPnP thread done")
|
logger.debug("UPnP thread done")
|
||||||
|
@ -333,7 +331,6 @@ class uPnPThread(threading.Thread, StoppableThread):
|
||||||
self.localPort,
|
self.localPort,
|
||||||
extPort)
|
extPort)
|
||||||
router.AddPortMapping(extPort, self.localPort, localIP, 'TCP', 'BitMessage')
|
router.AddPortMapping(extPort, self.localPort, localIP, 'TCP', 'BitMessage')
|
||||||
shared.extPort = extPort
|
|
||||||
self.extPort = extPort
|
self.extPort = extPort
|
||||||
BMConfigParser().set('bitmessagesettings', 'extport', str(extPort))
|
BMConfigParser().set('bitmessagesettings', 'extport', str(extPort))
|
||||||
BMConfigParser().save()
|
BMConfigParser().save()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user