mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:49:58 +00:00
[General] Fix incoming password string
This commit is contained in:
parent
0cf09adb44
commit
73cf134107
3 changed files with 7 additions and 3 deletions
|
@ -65,7 +65,8 @@ ServerExtendedData getExtendedData(const char *addr, unsigned short port)
|
|||
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();
|
||||
peer->Startup(1, &socketDescriptor, 1);
|
||||
|
||||
stringstream sstr(TES3MP_VERSION);
|
||||
stringstream sstr;
|
||||
sstr << TES3MP_VERSION;
|
||||
sstr << TES3MP_PROTO_VERSION;
|
||||
|
||||
std::string msg = "";
|
||||
|
|
|
@ -251,9 +251,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
RakNet::RakPeerInterface *peer = RakNet::RakPeerInterface::GetInstance();
|
||||
|
||||
stringstream sstr(TES3MP_VERSION);
|
||||
stringstream sstr;
|
||||
sstr << TES3MP_VERSION;
|
||||
sstr << TES3MP_PROTO_VERSION;
|
||||
sstr << version.mCommitHash;
|
||||
cout << sstr.str() << endl;
|
||||
|
||||
peer->SetIncomingPassword(sstr.str().c_str(), (int) sstr.str().size());
|
||||
|
||||
|
|
|
@ -249,7 +249,8 @@ void Networking::connect(const std::string &ip, unsigned short port, std::vector
|
|||
master.SetPortHostOrder(port);
|
||||
std::string errmsg = "";
|
||||
|
||||
stringstream sstr(TES3MP_VERSION);
|
||||
stringstream sstr;
|
||||
sstr << TES3MP_VERSION;
|
||||
sstr << TES3MP_PROTO_VERSION;
|
||||
sstr << Version::getOpenmwVersion(Main::getResDir()).mCommitHash;
|
||||
|
||||
|
|
Loading…
Reference in a new issue