diff options
| author | hovertank3d <[email protected]> | 2025-11-15 18:31:32 +0100 |
|---|---|---|
| committer | hovertank3d <[email protected]> | 2025-11-15 18:31:32 +0100 |
| commit | c2b53f27bad24003867afa5f5f7aedcf6fa7b26d (patch) | |
| tree | b1cbc5ae52957df6c6aeba60c7be5ae35872e709 /include/net/client.hpp | |
| parent | fa318825ef0404816728f733484caa1bc23afa53 (diff) | |
| download | ogurec-c2b53f27bad24003867afa5f5f7aedcf6fa7b26d.tar.gz ogurec-c2b53f27bad24003867afa5f5f7aedcf6fa7b26d.zip | |
minor fixes
Diffstat (limited to 'include/net/client.hpp')
| -rw-r--r-- | include/net/client.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |
