Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetNumberOfAddresses() return wrong value #55

Open
ProfesoresPL opened this issue Oct 3, 2019 · 0 comments
Open

GetNumberOfAddresses() return wrong value #55

ProfesoresPL opened this issue Oct 3, 2019 · 0 comments

Comments

@ProfesoresPL
Copy link

ProfesoresPL commented Oct 3, 2019

I think it would be better, if I illustrate this, so ...

My code:

void CNetwork::info()
{
	uint16_t port = g_pServer->getConfig().getPort();
	uint32_t adresses = m_pPeer->GetNumberOfAddresses();

	printLog << dark_purple << "Listening on:\n" << none;
	for (uint32_t i = 0; i < adresses; ++i)
	{
		printLog << "- " << m_pPeer->GetLocalIP(i) << ":" << port << "\n";
	}

	printLog << "======================================================\n";
}

Output:
problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant