From: Cirilo B. <pin...@us...> - 2005-09-28 13:05:41
|
Update of /cvsroot/once/oncecode/src/client/net In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31832/src/client/net Modified Files: occlinetmgr.cpp Log Message: Fixed the Endian handling in ocserialize Index: occlinetmgr.cpp =================================================================== RCS file: /cvsroot/once/oncecode/src/client/net/occlinetmgr.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** occlinetmgr.cpp 27 Sep 2005 23:25:53 -0000 1.4 --- occlinetmgr.cpp 28 Sep 2005 13:05:25 -0000 1.5 *************** *** 334,342 **** CS_ASSERT(!netclient->IsConnected()); - /// \note Dirty hack - RakNet should be fixed to avoid this. - /// For now we will accept data from ANY IP, which means that - /// your enemy can flood your connection. - netclient->AllowConnectionResponseIPMigration(true); - // Args are: hostIP, hostPort, clientPort, 0 // (back-compatibility arg - unused but must be 0), thread --- 334,337 ---- *************** *** 344,347 **** --- 339,347 ---- server_conn = netclient->Connect((char *)host, port, 0, 0, 0); + /// \note Dirty hack - RakNet should be fixed to avoid this. + /// For now we will accept data from ANY IP, which means that + /// your enemy can flood your connection. + netclient->AllowConnectionResponseIPMigration(true); + if (!server_conn) return false; |