diff --git a/retroshare-nogui/src/retroshare.cc b/retroshare-nogui/src/retroshare.cc index 5b79c4b0e..f7a19306f 100644 --- a/retroshare-nogui/src/retroshare.cc +++ b/retroshare-nogui/src/retroshare.cc @@ -75,7 +75,7 @@ int main(int argc, char **argv) { #ifdef ENABLE_WEBUI - std::string docroot = "./"; + std::string docroot = ""; uint16_t httpPort = 0; std::string listenAddress; bool allowAllIps = false; @@ -93,6 +93,9 @@ int main(int argc, char **argv) std::cerr << args.usage() << std::endl; } + if(docroot.empty()) + docroot = resource_api::getDefaultDocroot(); + resource_api::ApiServer api; resource_api::RsControlModule ctrl_mod(argc, argv, api.getStateTokenServer(), &api, true); api.addResourceHandler("control", dynamic_cast(&ctrl_mod), &resource_api::RsControlModule::handleRequest);