Merge pull request #499 from kiwix/startup-message

Add startup message to provide http url to server
This commit is contained in:
Kelson 2021-12-22 18:38:25 +01:00 committed by GitHub
commit 9b158360a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -368,7 +368,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 {