[mio] fmt

This commit is contained in:
lubeilin
2024-03-06 22:40:11 +08:00
parent 20e3ae4d58
commit f8ee8e242f
+5 -2
View File
@@ -260,8 +260,11 @@ impl<Call: VntCallback> ServerPacketHandler<Call> {
if old.virtual_ip != Ipv4Addr::UNSPECIFIED {
log::info!("ip发生变化,old:{:?},response={:?}", old, response);
}
if let Err(e) = self.device.set_ip(virtual_ip, virtual_netmask){
self.callback.error(ErrorInfo::new_msg(ErrorType::Unknown,format!("set_ip {:?}",e)));
if let Err(e) = self.device.set_ip(virtual_ip, virtual_netmask) {
self.callback.error(ErrorInfo::new_msg(
ErrorType::Unknown,
format!("set_ip {:?}", e),
));
return Ok(());
}
let mut guard = self.route_record.lock();