forked from Qortal/qortal
If UPnP is disabled in settings, close the existing external listenPort if a UPnP rule exists.
This commit is contained in:
parent
5d419dd4ec
commit
7307844bee
@ -188,6 +188,9 @@ public class Network {
|
|||||||
if (Settings.getInstance().isuPnPEnabled()) {
|
if (Settings.getInstance().isuPnPEnabled()) {
|
||||||
UPnP.openPortTCP(Settings.getInstance().getListenPort());
|
UPnP.openPortTCP(Settings.getInstance().getListenPort());
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
UPnP.closePortTCP(Settings.getInstance().getListenPort());
|
||||||
|
}
|
||||||
|
|
||||||
// Start up first networking thread
|
// Start up first networking thread
|
||||||
networkEPC.start();
|
networkEPC.start();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user