Author: toad
Date: 2007-04-25 18:22:13 +0000 (Wed, 25 Apr 2007)
New Revision: 12948

Modified:
   trunk/plugins/JSTUN/JSTUN.java
Log:
Make jstun work with 1.5 again.
Most of our installed users are 1.5, 1.6 isn't packaged on debian yet, OS/X 
comes with 1.5.
Yes this means turning off MTU detection support.

Modified: trunk/plugins/JSTUN/JSTUN.java
===================================================================
--- trunk/plugins/JSTUN/JSTUN.java      2007-04-25 18:20:59 UTC (rev 12947)
+++ trunk/plugins/JSTUN/JSTUN.java      2007-04-25 18:22:13 UTC (rev 12948)
@@ -172,12 +172,8 @@
                        DetectedIP[] ip;
                        try {
                                ip = runTest(startAddress);
-                               int mtu = -1;
-                               try {
-                                       mtu = 
NetworkInterface.getByInetAddress(startAddress).getMTU();
-                               } catch (Throwable t) {
-                                       // Ignore
-                               }
+                               //int mtu = 
NetworkInterface.getByInetAddress(startAddress).getMTU();
+                               int mtu = Integer.MAX_VALUE;
                                for(int i=0;i<ip.length;i++) ip[i].mtu = mtu;
                        } catch (Throwable t) {
                                ip = null;


Reply via email to