Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sgourdas committed Oct 2, 2024
1 parent 24c0b72 commit 55b42f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/server/kiwix-serve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 55b42f2

Please sign in to comment.