From 25b90fbd378ed22b3389a26949bcefb5dbf27955 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Thu, 6 Aug 2026 16:28:24 -0600 Subject: [PATCH] update `WasiCtxBuilder::allow_{tcp,udp}` docs PR #13936 disabled these settings by default but did not update the docs to match. --- crates/wasi/src/ctx.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/wasi/src/ctx.rs b/crates/wasi/src/ctx.rs index 13c350383001..99a8c71c3a9c 100644 --- a/crates/wasi/src/ctx.rs +++ b/crates/wasi/src/ctx.rs @@ -414,10 +414,9 @@ impl WasiCtxBuilder { self } - /// Allow usage of UDP. + /// Allow usage of UDP /// - /// This is enabled by default, but can be disabled if UDP should be blanket - /// disabled. + /// By default this is disabled. pub fn allow_udp(&mut self, enable: bool) -> &mut Self { self.sockets.allowed_network_uses.udp = enable; self @@ -425,8 +424,7 @@ impl WasiCtxBuilder { /// Allow usage of TCP /// - /// This is enabled by default, but can be disabled if TCP should be blanket - /// disabled. + /// By default this is disabled. pub fn allow_tcp(&mut self, enable: bool) -> &mut Self { self.sockets.allowed_network_uses.tcp = enable; self