🛂 Check for required permissions
On Linux, checks for the `CAP_NET_ADMIN` capability. On macOS, checks for root.
This commit is contained in:
parent
6bd8051c78
commit
40cc0ba049
7 changed files with 60 additions and 5 deletions
|
|
@ -71,7 +71,7 @@ mod test {
|
|||
|
||||
use super::*;
|
||||
use std::io::Write;
|
||||
use std::io::{self, BufRead};
|
||||
|
||||
use std::net::Ipv4Addr;
|
||||
|
||||
#[throws]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue