From 9a2257780f08410bad0d1dd522393431e0978c2c Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Tue, 6 Feb 2024 09:43:53 -0500 Subject: [PATCH] Fixed errors in call to 'check_ip_ver' --- includes/client.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/client.hpp b/includes/client.hpp index 37f24e7..a81a360 100644 --- a/includes/client.hpp +++ b/includes/client.hpp @@ -46,7 +46,7 @@ public: this->address = std::string(address); /* Check to see if the given IP address matches the given ip_ver */ - if ((check_ip_ver(address.data() == 4 && ip_ver == 6) || (chcek_ip_ver(address.data() == 6 && address == 4)) { + if ((check_ip_ver(address) == 4 && ip_ver == 6) || (check_ip_ver(address) == 6 && ip_ver == 4)) { throw std::invalid_argument("Invalid IP address for given type."); }