Cannot log Dualbox even localhost is whitelisted!
Posted: Sun Sep 30, 2012 11:27 pm
I cant log 2 clients at the same time with the settings like these..
maybe this related?
But 90% sure the problem is here.
Since this is not IP based but checks the client id for the entry counts, it does not check if it is from the localhost, therefore no whitelist.
Couldn't figure it out how to check if it is from a localhost and skip the block if it is. Help please.
Regards, Mean Mischief.
Code: Select all
# ----------------------------------------------------------------# Dualbox Check# ---------------------------------------------------------------- # Maximum number of players per IP address allowed to enter game.# Default: 0 (unlimited)DualboxCheckMaxPlayersPerIP = 2 # Maximum number of players per IP address allowed to participate in olympiad.# Default: 0 (unlimited)DualboxCheckMaxOlympiadParticipantsPerIP = 1 # Maximum number of players per IP address allowed to participate in events using L2J Event Engine (//event).# Default: 0 (unlimited)DualboxCheckMaxL2EventParticipantsPerIP = 1 # Whitelist of the addresses for dualbox checks.# Format: Address1,Number1;Address2,Number2...# Network address can be number (127.0.0.1) or symbolic (localhost) formats.# Additional connection number added to the global limits for this address.# For example, if number of TvT event participants per IP address set to the 1 (no dualbox)# and whitelist contains "l2jserver.com,2" then number of allowed participants from l2jserver.com# will be 1+2=3. Use 0 or negative value for unlimited number of connections.# Default: 127.0.0.1,0 (no limits from localhost)DualboxCheckWhitelist = 127.0.0.1,0
Code: Select all
# Maximum number of allowed participants per IP address (dualbox check)# Default: 0 (no limits)TvTEventMaxParticipantsPerIP = 1
Code: Select all
com\l2jserver\gameserver\network\clientpackets\CharacterSelect.java...if ((Config.L2JMOD_DUALBOX_CHECK_MAX_PLAYERS_PER_IP > 0) && !AntiFeedManager.getInstance().tryAddClient(AntiFeedManager.GAME_ID, client, Config.L2JMOD_DUALBOX_CHECK_MAX_PLAYERS_PER_IP)){final NpcHtmlMessage msg = new NpcHtmlMessage(0);msg.setFile(info.getHtmlPrefix(), "data/html/mods/IPRestriction.htm");msg.replace("%max%",String.valueOf(AntiFeedManager.getInstance().getLimit(client,Config.L2JMOD_DUALBOX_CHECK_MAX_PLAYERS_PER_IP)));client.sendPacket(msg);return;}
Couldn't figure it out how to check if it is from a localhost and skip the block if it is. Help please.
Regards, Mean Mischief.