// License System Start
bool IsValidLicense = false; std::string LicensedIPAddresses = "127.0.0.1"; std::string ServerIPAddress = "0.0.0.0"; foreach_stlmap_nolock (itr,m_ServerArray) { if (LicensedIPAddresses.find(itr->second->strServerIP) == std::string::npos) continue; ServerIPAddress = itr->second->strServerIP; IsValidLicense = true; break; } if (!IsValidLicense) { printf("ERROR:IP Address is not have a license.\n"); return false; }
// License System End