@@ -140,7 +140,7 @@ class clsClient : public clsPerson {
140140 genSha256Hash (sBuffer , hash);
141141 db.exec (" insert into users (username, password) values (?, ?);" ,
142142 {Text, Blob}, username.c_str (), hash, sizeof (hash));
143- cout << " [+] New user created." << endl;
143+ cout << " [+] New user created. " << sock. ip << endl;
144144 }
145145
146146 void log (clsDb& db) {
@@ -217,7 +217,7 @@ class clsProject {
217217 db.exec (
218218 " select id from projects where ownerId = ? and prjName = ?" ,
219219 {Id, Id, Text}, owner.id , prjName.c_str (), &prjId);
220- cout << " [+] New project created." << endl;
220+ cout << " [+] New project created. " << owner. sock . ip << endl;
221221 owner.sock .send (" ok" );
222222 } else
223223 owner.sock .send (" not ok" );
@@ -279,7 +279,7 @@ class clsProject {
279279 }
280280 }
281281 } catch (const runtime_error& e) {
282- cerr << e.what () << endl;
282+ cerr << e.what () << ' ' << owner. sock . ip << endl;
283283 }
284284 }
285285
@@ -302,7 +302,7 @@ void handleClient(clsClient client, clsDb& db, const string& path) {
302302 } else if (command == " signIn" )
303303 client.log (db);
304304 else {
305- client.sock .send (" Dinahu huiputalo blyat, parodia na ludynu ." );
305+ client.sock .send (" Dinahu huiputalo blyat." );
306306 throw invalid_argument (" [!] Chert detected." );
307307 }
308308 while ((command = client.sock .recv ()) != " quit" ) {
0 commit comments