English
block
The block outbound: any connection to it fails right away with ConnectionRefused ("blocked"), TCP and UDP.
| Crate | ours-mod-block, modules/protocols/block |
| Binary feature | block |
| Crate features | none |
requires
Nothing: the outbound opens nothing.
provides
Provide::Outbound { key: "block" }— the decoderours_config::dialer::<StubOptions>, without options.
The module declares neither Blocks nor Schema: a block outbound is not written in the native configuration. It is created by the loader (crates/native-config/src/rules.rs, a synthetic entity) for a rule with to: block. That is why the binary's test omitted_outbound_is_refused_with_the_available_types skips block.
Syntax: block.
Dependencies
Only ours-api.
Design
src/lib.rs: BlockOutbound (connect_stream/connect_packet return an error), build, MODULE.
Tests
None of its own; the behaviour is checked through rules with to: block in the loader's tests.