Fixed Server.cpp
This commit is contained in:
parent
cbd2a09135
commit
6f9c62172b
@ -6,7 +6,6 @@
|
|||||||
#include "Globals.h"
|
#include "Globals.h"
|
||||||
#include "Server.h"
|
#include "Server.h"
|
||||||
#include "Connection.h"
|
#include "Connection.h"
|
||||||
#include "Logger.h"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -34,7 +33,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
|
|||||||
}
|
}
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
LOG("Generating protocol encryption keypair...");
|
LOGINFO("Generating protocol encryption keypair...");
|
||||||
m_PrivateKey.Generate();
|
m_PrivateKey.Generate();
|
||||||
m_PublicKeyDER = m_PrivateKey.GetPubKeyDER();
|
m_PublicKeyDER = m_PrivateKey.GetPubKeyDER();
|
||||||
|
|
||||||
@ -98,10 +97,10 @@ void cServer::Run(void)
|
|||||||
printf("accept returned an error: %d; bailing out.\n", SocketError);
|
printf("accept returned an error: %d; bailing out.\n", SocketError);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG("Client connected, proxying...");
|
LOGINFO("Client connected, proxying...");
|
||||||
cConnection Connection(client, *this);
|
cConnection Connection(client, *this);
|
||||||
Connection.Run();
|
Connection.Run();
|
||||||
LOG("Client disconnected. Ready for another connection.");
|
LOGINFO("Client disconnected. Ready for another connection.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user