Skip to content

Commit 0be9341

Browse files
committed
fix(pluginlab): --allow-all should override --allow-net
1 parent bc5c113 commit 0be9341

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/pluginlab/src/permissions.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ impl From<&Cli> for NetworkPermissions {
2222
return NetworkPermissions::Custom(domains);
2323
}
2424
}
25+
if cli.allow_all {
26+
return NetworkPermissions::All;
27+
}
2528
return NetworkPermissions::None;
2629
}
2730
}

0 commit comments

Comments
 (0)