Update API endpoint for applying policy
This commit is contained in:
parent
8631791999
commit
69f0ceb529
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ const internalNginxOpenappsec = {
|
||||||
|
|
||||||
for (let port of ports) {
|
for (let port of ports) {
|
||||||
try {
|
try {
|
||||||
const command = `curl -s -o /dev/null -w "%{http_code}" ${constants.HOSTURL}:${port}/openappsec/apply-policy`;
|
const command = `curl -s -o /dev/null -w "%{http_code}" ${constants.HOSTURL}:${port}/openappsec/set-apply-policy`;
|
||||||
console.log(`command: ${command}`);
|
console.log(`command: ${command}`);
|
||||||
let { stdout } = await execPromise(command);
|
let { stdout } = await execPromise(command);
|
||||||
if (stdout === '200') {
|
if (stdout === '200') {
|
||||||
|
|
Loading…
Reference in a new issue