Author: toad
Date: 2007-04-25 22:37:14 +0000 (Wed, 25 Apr 2007)
New Revision: 12965

Modified:
   trunk/plugins/JSTUN/JSTUN.java
Log:
Fix ArrayStoreException breaking JSTUN

Modified: trunk/plugins/JSTUN/JSTUN.java
===================================================================
--- trunk/plugins/JSTUN/JSTUN.java      2007-04-25 22:24:45 UTC (rev 12964)
+++ trunk/plugins/JSTUN/JSTUN.java      2007-04-25 22:37:14 UTC (rev 12965)
@@ -204,8 +204,10 @@
                        }
                        synchronized(JSTUN.this) {
                                detectors.remove(this);
-                               if(ip != null)
-                                       detected.add(ip);
+                               if(ip != null) {
+                                       for(int i=0;i<ip.length;i++)
+                                               detected.add(ip[i]);
+                               }
                                JSTUN.this.notifyAll();
                        }
                }


Reply via email to