We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d0b2f02 + db3f12f commit 92549e2Copy full SHA for 92549e2
action.d/opnsense.conf
@@ -56,7 +56,7 @@ actionban = curl <_allow_insecure> -s -XPOST -d '{"address":"<ip>"}' -H "Content
56
actionunban = curl <_allow_insecure> -s -XPOST -d '{"address":"<ip>"}' -H "Content-Type: application/json" -u "<key>":"<secret>" https://<firewall>/api/firewall/alias_util/delete/<alias>
57
58
# Internal variable handler for `allow_insecure`
59
-_allow_insecure = if [ '<allow_insecure>' = true ]; then echo ' -k '; fi;
+_allow_insecure = $(if [ '<allow_insecure>' = true ]; then echo ' -k '; else echo ''; fi;)
60
61
[Init]
62
0 commit comments