Match a target SSID that isn't a valid glob as plain text #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "target-glob-fallback"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
Stops a target SSID that isn't a valid glob from crashing AngryOxide, the same fix #5 made for the whitelist.
--target, or a line in a targets file) is matched as a glob inTargetSSID::target_match(src/targets.rs) and inget_device_by_ssid_glob(src/devices.rs, used by the anonymous rogue M2 path). Both calledGlob::new(..).unwrap(), which panics on an SSID such asCafe [Guest(an unclosed[) the first time an AP is checked.util::ssid_matches_pattern(pattern, ssid): a valid glob matches as before, and an invalid one matches only that exact SSID.masteron its own, without #83 there.Kestrel never passes
--target, so this doesn't change anything Kestrel runs; it's for anyone using targets, and it waits for the next release after v0.9.5.Checks
cargo build --release --locked: builds; no new warnings (the one in this crate,src/advancedtable/advtable.rs:659, is onmastertoo).cargo test --release --locked: 12 passed (9 existing, 3 new: patterns as globs, an invalid pattern matching only itself, and aTargetSSIDwith one).After merging
The same commit goes upstream as its own PR, beside Ragnt/AngryOxide#83.
🤖 Generated with Claude Code