Skip to content

Commit 54be858

Browse files
committed
show correct server register message if the server is too old to be registered
1 parent 9e9c604 commit 54be858

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/serverlist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void CServerListManager::CentralServerRegisterServer ( const CHostAddress& In
314314
if ( strVersion.isEmpty() ||
315315
QVersionNumber::compare ( QVersionNumber::fromString ( strMinServerVersion ), QVersionNumber::fromString ( strVersion ) ) > 0 )
316316
{
317-
pConnLessProtocol->CreateCLRegisterServerResp ( InetAddr, SRR_NOT_FULFILL_REQIREMENTS );
317+
pConnLessProtocol->CreateCLRegisterServerResp ( InetAddr, SRR_VERSION_TOO_OLD );
318318
return; // leave function early, i.e., we do not register this server
319319
}
320320
#endif

0 commit comments

Comments
 (0)