Official eMule-Board: Minor Bug Fix Filtering Ipfiltered Sources - Official eMule-Board

Jump to content


Page 1 of 1

Minor Bug Fix Filtering Ipfiltered Sources in PartFile.cpp

#1 User is offline   Enig123 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 553
  • Joined: 22-November 04

Posted 20 December 2015 - 08:52 PM

When trying to figure out why eMule always try to connect to some kind IPFiltered ips, I found there's a minor bug in PartFile.cpp start at line 4502:
		if (uPacketSXVersion >= 3)
		{
			uint32 dwIDED2K = ntohl(dwID);

			// check the HighID(IP) - "Filter LAN IPs" and "IPfilter" the received sources IP addresses
			/*
			if (!IsLowID(dwID))
			*/ //Enig123::should be hybrid format instead
			if (!IsLowID(dwIDED2K))
			{
				if (!IsGoodIP(dwIDED2K))

where the dwID should be dwIDED2K instead, or else some bogus or IPFiltered ips will not be actually checked.
0

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users