Skip to content

Commit

Permalink
Align ipmode with server in kiwix-serve
Browse files Browse the repository at this point in the history
  • Loading branch information
sgourdas authored and kelson42 committed Sep 19, 2024
1 parent d95a248 commit 7372d88
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/kiwix-serve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,8 @@ int main(int argc, char** argv)
exit(1);
}

ipMode = server.getIpMode(); // Align the ipMode with the one set by the server

std::string prefix = "http://";
kiwix::IpAddress addresses = server.getAddress();
std::string suffix = ":" + std::to_string(server.getPort()) + normalizeRootUrl(rootLocation);
Expand Down

0 comments on commit 7372d88

Please sign in to comment.