From 55b42f27b6b154ae13aa4c73d4aaf797c7dbed56 Mon Sep 17 00:00:00 2001 From: sgourdas Date: Wed, 2 Oct 2024 21:36:24 +0300 Subject: [PATCH] Code cleanup --- src/server/kiwix-serve.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/server/kiwix-serve.cpp b/src/server/kiwix-serve.cpp index 06c133c5..79753616 100644 --- a/src/server/kiwix-serve.cpp +++ b/src/server/kiwix-serve.cpp @@ -326,14 +326,14 @@ int main(int argc, char** argv) kiwix::IpMode ipMode = kiwix::IpMode::AUTO; - if (address == "all"){ - address = ""; + if (address == "all") { + address.clear(); ipMode = kiwix::IpMode::ALL; - } else if (address == "ipv4"){ - address = ""; + } else if (address == "ipv4") { + address.clear(); ipMode = kiwix::IpMode::IPV4; - } else if (address == "ipv6"){ - address = ""; + } else if (address == "ipv6") { + address.clear(); ipMode = kiwix::IpMode::IPV6; }