diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dirs.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp index eb636c86c..4e8ba1efc 100644 --- a/src/dirs.cpp +++ b/src/dirs.cpp @@ -338,7 +338,14 @@ void Dirs::initUpdatesDir() // Don't go out of range int he next check if (settings.updateHost.length() < 2) + { + if (settings.updatesDir.empty()) + { + settings.updatesDir = std::string("updates/").append( + settings.serverName); + } return; + } const size_t sz = settings.updateHost.size(); // Remove any trailing slash at the end of the update host |