From c2b53f27bad24003867afa5f5f7aedcf6fa7b26d Mon Sep 17 00:00:00 2001 From: hovertank3d Date: Sat, 15 Nov 2025 18:31:32 +0100 Subject: minor fixes --- include/net/client.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/net/client.hpp') diff --git a/include/net/client.hpp b/include/net/client.hpp index 87b0ea1..fdcb27d 100644 --- a/include/net/client.hpp +++ b/include/net/client.hpp @@ -26,10 +26,10 @@ class client { struct sockaddr_in server_address {}; public: - client(std::string hostname, int port) + client(std::string ip, int port) { server_address.sin_family = AF_INET; - inet_pton(AF_INET, hostname.c_str(), &server_address.sin_addr); + inet_pton(AF_INET, ip.c_str(), &server_address.sin_addr); server_address.sin_port = htons(port); } -- cgit v1.2.3