zlubsen / dis-rs

Implementation of DIS in Rust
MIT License
14 stars 6 forks source link

CDIS-Gateway: Implement or remove use of block_host config option #36

Open zlubsen opened 3 weeks ago

zlubsen commented 3 weeks ago
warning: field block_host is never read --> cdis-gateway/src/config.rs:319:9 316 pub struct ConfigSpec { ---------- field in this struct ... 319 pub block_host : Option, ^^^^^^^^^^
= note: `ConfigSpec` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `#[warn(dead_code)]` on by default
zlubsen commented 3 weeks ago

A created socket should check if a received packet is coming from the same host as where the gateway is running. The config option block_host set to true should filter these packets.