]> jfr.im git - irc/rizon/moo.git/commitdiff
proxyscan: allow none/empty bindips
authorAdam <redacted>
Mon, 22 Aug 2016 21:35:27 +0000 (17:35 -0400)
committerAdam <redacted>
Mon, 22 Aug 2016 21:35:27 +0000 (17:35 -0400)
proxyscan/src/main/java/net/rizon/moo/plugin/proxyscan/IpCycler.java

index 8cd380797c28b7c4dde575f83595de940ed5ce30..caa0cc7702ebfa745866c62609273d2960d77e28 100644 (file)
@@ -8,15 +8,15 @@ public class IpCycler
        public IpCycler(String[] ips)
        {
                this.ips = ips;
-
-               if (ips.length == 0)
-               {
-                       throw new IllegalArgumentException();
-               }
        }
 
        public String getIp()
        {
+               if (ips == null || ips.length == 0)
+               {
+                       return null;
+               }
+
                if (curIp >= ips.length)
                {
                        curIp = 0;