Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9489 in orxonox.OLD for branches/proxy/src


Ignore:
Timestamp:
Jul 26, 2006, 11:38:04 AM (18 years ago)
Author:
patrick
Message:

only master servers got the right to redirect clients

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.cc

    r9485 r9489  
    502502
    503503  // check if the connecting client should reconnect to a proxy server
    504   peers[userId].handshake->setRedirect(this->networkMonitor->isReconnectNextClient());
     504  if( SharedNetworkData::getInstance()->isMasterServer())
     505    peers[userId].handshake->setRedirect(this->networkMonitor->isReconnectNextClient());
    505506
    506507  // the connecting node of course is a client
     
    596597
    597598              // now check if the server accepted the connection
    598               if( it->second.handshake->redirect() )
     599              if( SharedNetworkData::getInstance()->isClient() && it->second.handshake->redirect() )
    599600              {
    600601                this->bRedirect = true;
Note: See TracChangeset for help on using the changeset viewer.