Strip trailing slashes from --contentServerURL option

This commit is contained in:
Veloman Yunkan 2025-09-08 16:23:49 +04:00
parent 597223196d
commit 5fdea94c05

View File

@ -386,6 +386,8 @@ int main(int argc, char** argv)
server.setMultiZimSearchLimit(searchLimit);
server.setIpMode(ipMode);
server.setCatalogOnlyMode(catalogOnlyFlag);
while ( !contentServerURL.empty() && contentServerURL.back() == '/' )
contentServerURL.pop_back();
server.setContentServerUrl(contentServerURL);
if (! server.start()) {