Fix IP address output to console at initialization time #1

Merged
Wirlaburla merged 1 commits from bonkmaykr/Tourbot:master into master 2024-01-26 18:59:24 -05:00
Showing only changes of commit 2e75ca138c - Show all commits

View File

@ -129,7 +129,7 @@ void autoInit() {
aRecv_t = std::thread(reciever, &autosock, autoport, &autoOnline);
send(autosock, new unsigned char[] {0x03, 0xff, CMD_PROPREQ}, 3, 0);
printf("info: Connected to AutoServer: %i.%i.%i.%i:%i\n", autoserver[1], autoserver[1], autoserver[2], autoserver[3], autoport);
printf("info: Connected to AutoServer: %i.%i.%i.%i:%i\n", autoserver[0], autoserver[1], autoserver[2], autoserver[3], autoport);
sessInit(&autosock, login_username, login_password);
autoOnline = true;
}
@ -147,7 +147,7 @@ void roomInit() {
perror("RoomServ connection failed");
send(autosock, new unsigned char[] {0x03, 0xff, CMD_PROPREQ}, 3, 0);
printf("info: Connected to RoomServer: %i.%i.%i.%i:%i\n", roomserver[1], roomserver[1], roomserver[2], roomserver[3], roomport);
printf("info: Connected to RoomServer: %i.%i.%i.%i:%i\n", roomserver[0], roomserver[1], roomserver[2], roomserver[3], roomport);
roomOnline = true;
rRecv_t = std::thread(reciever, &roomsock, roomport, &roomOnline);
sessInit(&roomsock, login_username, login_password);