From b834e0275546706ab3aef1998f4e9e61a3379e89 Mon Sep 17 00:00:00 2001 From: ppom <> Date: Thu, 21 Dec 2023 12:00:00 +0100 Subject: [PATCH] Fix jsonnet examples --- README.md | 6 +++--- config/example.jsonnet | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 865b8b0..c885379 100644 --- a/README.md +++ b/README.md @@ -97,9 +97,9 @@ local banFor(time) = { iptables([ '-I', 'INPUT', '-p', 'all', '-j', 'reaction' ]), ], stop: [ - iptables([ '-D,', 'INPUT', '-p', 'all', '-j', 'reaction' ]), - iptables([ '-F,', 'reaction' ]), - iptables([ '-X,', 'reaction' ]), + iptables([ '-D', 'INPUT', '-p', 'all', '-j', 'reaction' ]), + iptables([ '-F', 'reaction' ]), + iptables([ '-X', 'reaction' ]), ], streams: { ssh: { diff --git a/config/example.jsonnet b/config/example.jsonnet index 18583fa..8a693cc 100644 --- a/config/example.jsonnet +++ b/config/example.jsonnet @@ -32,11 +32,11 @@ local iptables(args) = ['ip46tables', '-w'] + args; // Those commands will be executed in order at stop, after everything else stop: [ // Remove the chain from the INPUT chain - iptables(['-D,', 'INPUT', '-p', 'all', '-j', 'reaction']), + iptables(['-D', 'INPUT', '-p', 'all', '-j', 'reaction']), // Empty the chain - iptables(['-F,', 'reaction']), + iptables(['-F', 'reaction']), // Delete the chain - iptables(['-X,', 'reaction']), + iptables(['-X', 'reaction']), ], // streams are commands