Skip to content

Commit

Permalink
disabled jobs and secure tunneling if they are not compiled into bina…
Browse files Browse the repository at this point in the history
…ry (#436)
  • Loading branch information
HarshGandhi-AWS authored Nov 7, 2023
1 parent 2efead6 commit b75dc3a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion source/config/Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#endif

#include "../SharedCrtResourceManager.h"
#include "../util/FileUtils.h"
#include "../util/MqttUtils.h"
#include "../util/ProxyUtils.h"
Expand Down Expand Up @@ -2641,6 +2642,14 @@ bool Config::ParseCliArgs(int argc, char **argv, CliArgs &cliArgs)

bool Config::init(const CliArgs &cliArgs)
{
#if defined(EXCLUDE_JOBS)
config.jobs.enabled = false;
#endif

#if defined(EXCLUDE_ST)
config.tunneling.enabled = false;
#endif

try
{
string filename = Config::DEFAULT_CONFIG_FILE;
Expand Down Expand Up @@ -3171,4 +3180,4 @@ string Config::ExpandDefaultConfigDir(bool removeTrailingSeparator)
return Util::TrimRightCopy(expandedConfigDir, string{Config::PATH_DIRECTORY_SEPARATOR});
}
return expandedConfigDir;
}
}

0 comments on commit b75dc3a

Please sign in to comment.