ramm 0.0.27 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/ramm.js +1 -4
  2. package/package.json +1 -1
package/dist/ramm.js CHANGED
@@ -247,10 +247,7 @@ var createNftTable = ({ allowedIpV4 }) => {
247
247
  var setupNftable = async ({
248
248
  allowedIpV4
249
249
  }) => {
250
- const listTable = await execCommand("nft list table inet ramm");
251
- if (listTable.spawnResult.exitCode === 0) {
252
- await execCommand("nft delete table inet ramm");
253
- }
250
+ await execCommand("nft flush ruleset");
254
251
  const nftTable = createNftTable({ allowedIpV4 });
255
252
  await execCommand(`nft -f - <<EOF
256
253
  ${nftTable}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ramm",
3
3
  "type": "module",
4
- "version": "0.0.27",
4
+ "version": "0.0.28",
5
5
  "scripts": {
6
6
  "build": "bun build ./src/ramm.ts --target bun --outdir ./dist && cp ./src/bun.sh ./dist/bun.sh",
7
7
  "types": "tsc --project tsconfig.types.json"