bug fix: compatiblity to old server versions were incorrect for the server list

This commit is contained in:
Volker Fischer 2020-04-11 19:52:53 +02:00
parent fc4463330b
commit ce66f844d1
2 changed files with 8 additions and 7 deletions

View file

@ -14,7 +14,6 @@
TODO split country names by upper case latters by inserting a space
TODO fix UpdateCurLevel() for new 64 samples frame size
@ -29,6 +28,8 @@ TODO offer the Jamulus ASIO settingspanel in case of an ASIO ERROR to fix, e.g.,
TODO client: larger sound card buffers are managed by conversion buffer, not in processintern for loop (note iSndCrdFrameSizeFactor!)
TODO should LHostAddr be QHostAddress instead of CHostAddress?

View file

@ -1507,10 +1507,10 @@ bool CProtocol::EvaluateCLRegisterServerMes ( const CHostAddress& InetAddr,
if ( sLocHost.isEmpty() )
{
// old server, empty "topic", register as external address
LInetAddr = InetAddr;
// old server, empty "topic", register as local host
LInetAddr.InetAddr.setAddress ( QHostAddress::LocalHost );
}
else if ( !LInetAddr.InetAddr.setAddress( sLocHost ) )
else if ( !LInetAddr.InetAddr.setAddress ( sLocHost ) )
{
return true; // return error code
}
@ -1674,10 +1674,10 @@ bool CProtocol::EvaluateCLServerListMes ( const CHostAddress& InetAddr,
CHostAddress LInetAddr;
if ( strLHostAddr.isEmpty() )
{
// old central server, empty "topic", default to server address
LInetAddr.InetAddr.setAddress( iIpAddr );
// old central server, empty "topic", default to localhost
LInetAddr.InetAddr.setAddress ( QHostAddress::LocalHost );
}
else if ( !LInetAddr.InetAddr.setAddress( strLHostAddr ) )
else if ( !LInetAddr.InetAddr.setAddress ( strLHostAddr ) )
{
return true; // return error code
}