Merge pull request #522 from kiwix/showCustomRoot

Add root location in startup message
This commit is contained in:
Kelson 2022-01-14 16:18:34 +01:00 committed by GitHub
commit 2c435926ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,7 +369,7 @@ int main(int argc, char** argv)
exit(1);
}
std::string url = "http://" + server.getAddress() + ":" + std::to_string(server.getPort());
std::string url = "http://" + server.getAddress() + ":" + std::to_string(server.getPort()) + "/" + rootLocation;
std::cout << "The Kiwix server is running and can be accessed in the local network at: "
<< url << std::endl;