Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions crates/wasi/src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,19 +414,17 @@ 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
}

/// 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
Expand Down
Loading