[freenet-cvs] r15031 - trunk/plugins/UPnP

toad at freenetproject.org toad at freenetproject.org
Sat Sep 8 12:04:09 UTC 2007


Author: toad
Date: 2007-09-08 12:04:09 +0000 (Sat, 08 Sep 2007)
New Revision: 15031

Modified:
   trunk/plugins/UPnP/UPnP.java
Log:
Use the name provided. Use the protocol provided - so can forward TCP.

Modified: trunk/plugins/UPnP/UPnP.java
===================================================================
--- trunk/plugins/UPnP/UPnP.java	2007-09-08 07:48:55 UTC (rev 15030)
+++ trunk/plugins/UPnP/UPnP.java	2007-09-08 12:04:09 UTC (rev 15031)
@@ -190,7 +190,7 @@
 		int nbOfTries = 0;
 		boolean isPortForwarded = false;
 		while(nbOfTries++ < 5) {
-			isPortForwarded = addMapping("UDP", port, "Freenet 0.7 FNP - " + _router.getInterfaceAddress(), fp);
+			isPortForwarded = addMapping(protocol, port, "Freenet 0.7 " + description, fp);
 			if(isPortForwarded)
 				break;
 			try {




More information about the cvs mailing list