Skip to content

Commit

Permalink
Minor Refactor
Browse files Browse the repository at this point in the history
Now uses personal repo's on GitHub, due to no responses of main owners.

Updated src/nftables/rules.js
Removed references to executeReturnHandle - stable NFT nosup --echo
nftables v0.7 (Scrooge McDuck)
  • Loading branch information
Dustyn Blackmore committed May 5, 2018
1 parent 378ade5 commit 29d4091
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/dmblack/nftables_firewall.js#readme",
"dependencies": {
"nfqueue": "^0.3.1",
"pcap": "https://github.com/mranney/node_pcap.git"
"nfqueue": "https://github.com/dmblack/node-nfqueue.git",
"pcap": "https://github.com/dmblack/node_pcap.git"
}
}
4 changes: 2 additions & 2 deletions src/nftables/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function executeReturnHandle (exec, command) {

const rules = (exec) => ({
add: (rule) => {
return executeReturnHandle(exec, 'add ' + rule);
return exeute(exec, 'add ' + rule);
},
flush: () => {
return execute(exec, 'flush ruleset');
Expand All @@ -45,7 +45,7 @@ const rules = (exec) => ({
return execute(exec, 'list ruleset');
},
removeByTableSetChainHandle: (table, set, chain, handle) => {
return executeReturnHandle(exec, 'delete rule table ' + table + ' ' + set + ' ' + chain + ' ' + handle)
return exeute(exec, 'delete rule table ' + table + ' ' + set + ' ' + chain + ' ' + handle)
}
})

Expand Down

0 comments on commit 29d4091

Please sign in to comment.