mirror of https://github.com/dswd/vpncloud.git
Fixed compile error
This commit is contained in:
parent
885b288025
commit
4e047b6065
|
@ -591,7 +591,7 @@ impl<P: Protocol> GenericCloud<P> {
|
|||
}
|
||||
},
|
||||
fd if (fd == device_fd) => {
|
||||
let start = 64;
|
||||
let mut start = 64;
|
||||
let (offset, size) = try_fail!(self.device.read(&mut buffer[start..]), "Failed to read from tap device: {}");
|
||||
start += offset;
|
||||
if let Err(e) = self.handle_interface_data(&mut buffer, start, start+size) {
|
||||
|
|
Loading…
Reference in New Issue