mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
Support local managment for embedded agent on nginx
This commit is contained in:
@@ -99,6 +99,7 @@ public:
|
||||
vector<string> getProfileAgentSettings(const string ®ex) const override;
|
||||
|
||||
const string & getConfigurationFlag(const string &flag_name) const override;
|
||||
const string & getConfigurationFlagWithDefault(const string &default_val, const string &flag_name) const override;
|
||||
const string & getFilesystemPathConfig() const override;
|
||||
const string & getLogFilesPathConfig() const override;
|
||||
|
||||
@@ -423,6 +424,15 @@ ConfigComponent::Impl::getConfigurationFlag(const string &flag_name) const
|
||||
return not_found;
|
||||
}
|
||||
|
||||
const string &
|
||||
ConfigComponent::Impl::getConfigurationFlagWithDefault(const string &default_val, const string &flag_name) const
|
||||
{
|
||||
const string &val = getConfigurationFlag(flag_name);
|
||||
if (!val.empty()) return val;
|
||||
|
||||
return default_val;
|
||||
}
|
||||
|
||||
const string &
|
||||
ConfigComponent::Impl::getFilesystemPathConfig() const
|
||||
{
|
||||
|
@@ -64,6 +64,13 @@ getConfigurationFlag(const string &flag)
|
||||
return Singleton::Consume<I_Config>::from<MockConfigProvider>()->getConfigurationFlag(flag);
|
||||
}
|
||||
|
||||
string
|
||||
getConfigurationFlagWithDefault(const string &default_val, const string &flag)
|
||||
{
|
||||
return
|
||||
Singleton::Consume<I_Config>::from<MockConfigProvider>()->getConfigurationFlagWithDefault(default_val, flag);
|
||||
}
|
||||
|
||||
const string &
|
||||
getFilesystemPathConfig()
|
||||
{
|
||||
|
Reference in New Issue
Block a user