Skip to content
Snippets Groups Projects
Commit 8f98d936 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] UPnP: have "duniter:ws2p:upnp" and "duniter:bma:upnp" descriptions

parent 60175974
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,8 @@ export class UpnpApi { ...@@ -43,7 +43,8 @@ export class UpnpApi {
client.portMapping({ client.portMapping({
'public': this.remotePort, 'public': this.remotePort,
'private': this.localPort, 'private': this.localPort,
'ttl': BMAConstants.UPNP_TTL 'ttl': BMAConstants.UPNP_TTL,
'description': 'duniter:bma:upnp'
}, (err:any) => { }, (err:any) => {
client.close(); client.close();
if (err) { if (err) {
......
...@@ -52,7 +52,8 @@ export class WS2PUpnp { ...@@ -52,7 +52,8 @@ export class WS2PUpnp {
client.portMapping({ client.portMapping({
'public': this.currentConfig.port, 'public': this.currentConfig.port,
'private': this.currentConfig.port, 'private': this.currentConfig.port,
'ttl': WS2PConstants.WS2P_UPNP_TTL 'ttl': WS2PConstants.WS2P_UPNP_TTL,
'description': 'duniter:ws2p:upnp'
}, (err:any) => { }, (err:any) => {
client.close() client.close()
if (err) { if (err) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment