Skip to content

Commit

Permalink
Add startup message to provide http url to server
Browse files Browse the repository at this point in the history
  • Loading branch information
juuz0 committed Dec 11, 2021
1 parent 7659efa commit 5ea4bc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/kiwix-serve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,11 @@ int main(int argc, char** argv)
if (! server.start()) {
exit(1);
}


std::string url = "http://" + server.getAddress() + ":" + std::to_string(server.getPort());
std::cout << "The Kiwix server is running and can be accessed in the local network at: "
<< url << std::endl;

/* Run endless (until PPID dies) */
waiting = true;
do {
Expand Down

0 comments on commit 5ea4bc1

Please sign in to comment.