summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2015-01-08 14:27:58 (GMT)
committerSwift Review <review@swift.im>2015-02-03 11:44:47 (GMT)
commit6cdd1ba4513bec0e192b5735d5476ed9f0bb8c3f (patch)
tree07d002016f6a3f186007397a09a1aff18e603d57
parentbda5e6672ae7f458316665ecf9564a5bf9f51238 (diff)
downloadswift-6cdd1ba4513bec0e192b5735d5476ed9f0bb8c3f.zip
swift-6cdd1ba4513bec0e192b5735d5476ed9f0bb8c3f.tar.bz2
Use "Swift" description when adding UPnP port forwardings.
Test-Information: Verified using Port Map.app tool and router supporting UPnP. Change-Id: I8d43a812f136979a70ef4dc62ff45448c6603b8b
-rw-r--r--Swiften/Network/MiniUPnPInterface.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Swiften/Network/MiniUPnPInterface.cpp b/Swiften/Network/MiniUPnPInterface.cpp
index bfa989f..357fe69 100644
--- a/Swiften/Network/MiniUPnPInterface.cpp
+++ b/Swiften/Network/MiniUPnPInterface.cpp
@@ -4,6 +4,12 @@
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
+/*
+ * Copyright (c) 2015 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+
#include <Swiften/Network/MiniUPnPInterface.h>
#include <miniupnpc.h>
@@ -78,7 +84,7 @@ boost::optional<NATPortMapping> MiniUPnPInterface::addPortForward(int actualLoca
publicPort.c_str(),
localPort.c_str(),
p->localAddress.c_str(),
- 0,
+ "Swift",
mapping.getProtocol() == NATPortMapping::TCP ? "TCP" : "UDP",
0,
leaseSeconds.c_str());