[mio] fmt
This commit is contained in:
@@ -260,8 +260,11 @@ impl<Call: VntCallback> ServerPacketHandler<Call> {
|
|||||||
if old.virtual_ip != Ipv4Addr::UNSPECIFIED {
|
if old.virtual_ip != Ipv4Addr::UNSPECIFIED {
|
||||||
log::info!("ip发生变化,old:{:?},response={:?}", old, response);
|
log::info!("ip发生变化,old:{:?},response={:?}", old, response);
|
||||||
}
|
}
|
||||||
if let Err(e) = self.device.set_ip(virtual_ip, virtual_netmask){
|
if let Err(e) = self.device.set_ip(virtual_ip, virtual_netmask) {
|
||||||
self.callback.error(ErrorInfo::new_msg(ErrorType::Unknown,format!("set_ip {:?}",e)));
|
self.callback.error(ErrorInfo::new_msg(
|
||||||
|
ErrorType::Unknown,
|
||||||
|
format!("set_ip {:?}", e),
|
||||||
|
));
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
let mut guard = self.route_record.lock();
|
let mut guard = self.route_record.lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user