diff --git a/PlayerTracker b/PlayerTracker index 804d520..611b2a6 100755 Binary files a/PlayerTracker and b/PlayerTracker differ diff --git a/source/main.cpp b/source/main.cpp index 3aff7f7..7740ae5 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -30,7 +30,12 @@ int main(int argc, char *argv[]) { request[1] = 120; sock.send_server(request, sizeof(request)); - + cout << "[+] Connected to server!\n\tInfo: " << endl; + cout << "\t- API Socket Path: " << app.app_api_socket_path << endl; + cout << "\t- Server Out IP: " << app.app_server_out_ip << endl; + cout << "\t- App Port In: " << app.app_port_in << endl; + cout << "\t- App Port Out: " << app.app_port_out << endl; + } catch (const runtime_error &e) { cerr << "Error: " << e.what() << endl; return 1; diff --git a/source/net.cpp b/source/net.cpp index 2c672ed..79db06d 100644 --- a/source/net.cpp +++ b/source/net.cpp @@ -34,8 +34,6 @@ void Socket::connect_unix(const char *ip, uint16_t port) { this->server_addr_unix.sun_family = AF_UNIX; strncpy(this->server_addr_unix.sun_path, ip, sizeof(this->server_addr_unix.sun_path) - 1); - printf("Connecting to UNIX socket at %s\n", ip); - if (connect(sock_unix, (struct sockaddr *)&server_addr_unix, sizeof(server_addr_unix)) < 0) { throw std::runtime_error("Failed to connect to UNIX socket"); }