Package l2p.util

Examples of l2p.util.NetList


        }
      }
      boolean invalid = false;
      try
      {
        NetList allowedList = new NetList();
        allowedList.LoadFromString(ip, ",");
        if(!allowedList.isIpInNets(activeChar.getIP()))
        {
          invalid = true;
        }
      }
      catch(Exception e)
View Full Code Here


      {
        PACKETLOGGER_IPS = null;
      }
      else
      {
        PACKETLOGGER_IPS = new NetList();
        PACKETLOGGER_IPS.LoadFromString(temp, ",");
      }
      temp = getProperty(serverSettings, "LogPacketsFromAccounts", "").trim();
      if(temp.isEmpty())
      {
View Full Code Here

        LOGIN_GG_CHECK = getBooleanProperty(serverSettings, "GGCheck", true);
        LRESTART_TIME = getIntProperty(serverSettings, "AutoRestart", -1);
        String internalIpList = getProperty(serverSettings, "InternalIpList", "127.0.0.1,192.168.0.0-192.168.255.255,10.0.0.0-10.255.255.255,172.16.0.0-172.16.31.255");
        if(internalIpList.startsWith("NetList@"))
        {
          INTERNAL_NETLIST = new NetList();
          INTERNAL_NETLIST.LoadFromFile(internalIpList.replaceFirst("NetList@", ""));
          _log.info("Loaded " + INTERNAL_NETLIST.NetsCount() + " Internal Nets");
        }
        else
        {
View Full Code Here

  public void addIP(String ip)
  {
    if(ips == null)
    {
      ips = new NetList();
    }
    ips.AddNet(ip);
  }
View Full Code Here

        // legacy check
        if(allowedIps != null && !allowedIps.isEmpty() && !allowedIps.equals("*"))
        {
          if(!expired)
          {
            NetList allowedList = new NetList();
            allowedList.LoadFromString(allowedIps, ",");
            if(!allowedList.isIpInNets(client.getIpAddress()))
            {
              return new Status().setState(State.IP_ACCESS_DENIED);
            }
          }
          else
View Full Code Here

TOP

Related Classes of l2p.util.NetList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.