fix windows route delete's missing mask

This commit is contained in:
asxalex 2026-04-24 00:17:37 +08:00
parent 85190447be
commit cb0e4cfbd5

View File

@ -789,6 +789,7 @@ pub fn del_route(net: &Ipv4Net, gw: &Ipv4Addr) -> Result<()> {
let res = Command::new("route") let res = Command::new("route")
.arg("delete") .arg("delete")
.arg(network) .arg(network)
.arg("MASK")
.arg(mask) .arg(mask)
.arg(gw.to_string()) .arg(gw.to_string())
.output()?; .output()?;