Skip to content

Commit 92549e2

Browse files
authored
Merge pull request #12 from nomandera/patch-1
Fix allow_insecure handling
2 parents d0b2f02 + db3f12f commit 92549e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.d/opnsense.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ actionban = curl <_allow_insecure> -s -XPOST -d '{"address":"<ip>"}' -H "Content
5656
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>
5757

5858
# Internal variable handler for `allow_insecure`
59-
_allow_insecure = if [ '<allow_insecure>' = true ]; then echo ' -k '; fi;
59+
_allow_insecure = $(if [ '<allow_insecure>' = true ]; then echo ' -k '; else echo ''; fi;)
6060

6161
[Init]
6262

0 commit comments

Comments
 (0)