mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
fix: re-enable http-outbound plugin permission (#3087)
The HTTP_OUTBOUND permission was wired up correctly in #2128, gating
whether a plugin's outbound HTTP requests are allowed via
wasi_http_hooks.allow_outbound. That block was accidentally dropped in
8ce513ff89 ("feat: more plugin features") when unrelated changes
overwrote the same permission-checking region in
wasm_host/mod.rs, leaving allow_outbound permanently false regardless
of the plugin's declared permissions.
This restores the check so a plugin granted http-outbound in its
manifest can actually make outbound HTTP calls again.
This commit is contained in:
@@ -277,6 +277,10 @@ impl WasmPlugin {
|
||||
builder.inherit_network();
|
||||
}
|
||||
|
||||
if has_permission(permissions::HTTP_OUTBOUND) {
|
||||
store.data_mut().wasi_http_hooks.allow_outbound = true;
|
||||
}
|
||||
|
||||
// --- System Permissions & Environment Variables ---
|
||||
|
||||
// Environment Variables
|
||||
|
||||
Reference in New Issue
Block a user