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 split country names by upper case latters by inserting a space
TODO fix UpdateCurLevel() for new 64 samples frame size 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 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,8 +1507,8 @@ bool CProtocol::EvaluateCLRegisterServerMes ( const CHostAddress& InetAddr,
if ( sLocHost.isEmpty() ) if ( sLocHost.isEmpty() )
{ {
// old server, empty "topic", register as external address // old server, empty "topic", register as local host
LInetAddr = InetAddr; LInetAddr.InetAddr.setAddress ( QHostAddress::LocalHost );
} }
else if ( !LInetAddr.InetAddr.setAddress ( sLocHost ) ) else if ( !LInetAddr.InetAddr.setAddress ( sLocHost ) )
{ {
@ -1674,8 +1674,8 @@ bool CProtocol::EvaluateCLServerListMes ( const CHostAddress& InetAddr,
CHostAddress LInetAddr; CHostAddress LInetAddr;
if ( strLHostAddr.isEmpty() ) if ( strLHostAddr.isEmpty() )
{ {
// old central server, empty "topic", default to server address // old central server, empty "topic", default to localhost
LInetAddr.InetAddr.setAddress( iIpAddr ); LInetAddr.InetAddr.setAddress ( QHostAddress::LocalHost );
} }
else if ( !LInetAddr.InetAddr.setAddress ( strLHostAddr ) ) else if ( !LInetAddr.InetAddr.setAddress ( strLHostAddr ) )
{ {