1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-06 02:11:06 +09:00

Wrong appidentifier now sends immediate Disconnect

BarebonesClient/Server added
This commit is contained in:
lidgren
2010-06-17 16:47:23 +00:00
parent a7a6a61af0
commit 3bd903aeb8
8 changed files with 338 additions and 0 deletions

View File

@@ -485,6 +485,10 @@ namespace Lidgren.Network
{
// wrong app ident
LogWarning("Connect received with wrong appidentifier (need '" + m_configuration.AppIdentifier + "' found '" + appIdent + "') from " + senderEndpoint);
NetOutgoingMessage bye = CreateLibraryMessage(NetMessageLibraryType.Disconnect, "Wrong app identifier!");
SendUnconnectedLibraryMessage(bye, NetMessageLibraryType.Disconnect, senderEndpoint);
break;
}