Fixed a number of warnings
This commit is contained in:
parent
76278809ea
commit
104f8215ba
28 changed files with 144 additions and 199 deletions
|
|
@ -11,7 +11,7 @@ fn tst_read() {
|
|||
// This test is interactive, you need to send a packet to any server through
|
||||
// 192.168.1.10 EG. `sudo route add 8.8.8.8 192.168.1.10`,
|
||||
//`dig @8.8.8.8 hackclub.com`
|
||||
let mut tun = TunInterface::new()?;
|
||||
let tun = TunInterface::new()?;
|
||||
println!("tun name: {:?}", tun.name()?);
|
||||
tun.set_ipv4_addr(Ipv4Addr::from([192, 168, 1, 10]))?;
|
||||
println!("tun ip: {:?}", tun.ipv4_addr()?);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue