Add startup message to provide http url to server

This commit is contained in:
Nikhil Tanwar 2021-11-29 17:17:28 +05:30 committed by Emmanuel Engelhart
parent a080a3137e
commit 7d2c67f43d

View File

@ -369,6 +369,10 @@ int main(int argc, char** argv)
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 {