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.
1 parent a22ab6d commit 431089bCopy full SHA for 431089b
1 file changed
src/firewall/nftables.rs
@@ -95,8 +95,9 @@ impl NfTablesBackend {
95
96
/// Create a table
97
pub fn create_table(&self, table: &NfTable) -> Result<()> {
98
+ let table_str = table.to_string();
99
let output = Command::new("nft")
- .args(["add", "table", &table])
100
+ .args(["add", "table", &table_str])
101
.output()
102
.context("Failed to create nftables table")?;
103
@@ -112,8 +113,9 @@ impl NfTablesBackend {
112
113
114
/// Delete a table
115
pub fn delete_table(&self, table: &NfTable) -> Result<()> {
116
117
- .args(["delete", "table", &table])
118
+ .args(["delete", "table", &table_str])
119
120
.context("Failed to delete nftables table")?;
121
0 commit comments