Author: toad
Date: 2007-04-25 18:16:21 +0000 (Wed, 25 Apr 2007)
New Revision: 12946
Modified:
trunk/plugins/JSTUN/JSTUN.java
Log:
Catch Throwable while reading MTU
Modified: trunk/plugins/JSTUN/JSTUN.java
===================================================================
--- trunk/plugins/JSTUN/JSTUN.java 2007-04-25 17:58:36 UTC (rev 12945)
+++ trunk/plugins/JSTUN/JSTUN.java 2007-04-25 18:16:21 UTC (rev 12946)
@@ -172,7 +172,12 @@
DetectedIP[] ip;
try {
ip = runTest(startAddress);
- int mtu =
NetworkInterface.getByInetAddress(startAddress).getMTU();
+ int mtu = -1;
+ try {
+ mtu =
NetworkInterface.getByInetAddress(startAddress).getMTU();
+ } catch (Throwable t) {
+ // Ignore
+ }
for(int i=0;i<ip.length;i++) ip[i].mtu = mtu;
} catch (Throwable t) {
ip = null;