Package l2p.loginserver

Source Code of l2p.loginserver.Lock

package l2p.loginserver;

import l2p.util.NetList;

public class Lock
{
  private NetList ips;

  public Lock()
  {
  }

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

  public boolean checkIP(String ip)
  {
    if(ips == null)
    {
      return false;
    }
    return ips.isIpInNets(ip);
  }
}
TOP

Related Classes of l2p.loginserver.Lock

TOP
Copyright © 2018 www.massapi.com. 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.