From 8f98d9367e1ffe63a4839fc3489b149f8ba85c78 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Sun, 17 Sep 2017 15:06:19 +0200
Subject: [PATCH] [enh] UPnP: have "duniter:ws2p:upnp" and "duniter:bma:upnp"
 descriptions

---
 app/modules/bma/lib/upnp.ts       | 3 ++-
 app/modules/ws2p/lib/ws2p-upnp.ts | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/app/modules/bma/lib/upnp.ts b/app/modules/bma/lib/upnp.ts
index 45b451ff0..06b6bf41e 100644
--- a/app/modules/bma/lib/upnp.ts
+++ b/app/modules/bma/lib/upnp.ts
@@ -43,7 +43,8 @@ export class UpnpApi {
       client.portMapping({
         'public': this.remotePort,
         'private': this.localPort,
-        'ttl': BMAConstants.UPNP_TTL
+        'ttl': BMAConstants.UPNP_TTL,
+        'description': 'duniter:bma:upnp'
       }, (err:any) => {
         client.close();
         if (err) {
diff --git a/app/modules/ws2p/lib/ws2p-upnp.ts b/app/modules/ws2p/lib/ws2p-upnp.ts
index 228de22ae..8f16146d7 100644
--- a/app/modules/ws2p/lib/ws2p-upnp.ts
+++ b/app/modules/ws2p/lib/ws2p-upnp.ts
@@ -52,7 +52,8 @@ export class WS2PUpnp {
       client.portMapping({
         'public': this.currentConfig.port,
         'private': this.currentConfig.port,
-        'ttl': WS2PConstants.WS2P_UPNP_TTL
+        'ttl': WS2PConstants.WS2P_UPNP_TTL,
+        'description': 'duniter:ws2p:upnp'
       }, (err:any) => {
         client.close()
         if (err) {
-- 
GitLab