Skip to content

Commit 4c8f21b

Browse files
committed
use variable for NAP directory path
1 parent 5d51956 commit 4c8f21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/watcher/instance/nginx-app-protect-instance-watcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type NginxAppProtectInstanceWatcher struct {
5050
}
5151

5252
func NewNginxAppProtectInstanceWatcher(agentConfig *config.Config) *NginxAppProtectInstanceWatcher {
53-
agentConfig.AllowedDirectories = append(agentConfig.AllowedDirectories, "/opt/app_protect")
53+
agentConfig.AllowedDirectories = append(agentConfig.AllowedDirectories, napDirPath)
5454
return &NginxAppProtectInstanceWatcher{
5555
agentConfig: agentConfig,
5656
filesBeingWatched: make(map[string]bool),

0 commit comments

Comments
 (0)