|
@@ -286,7 +286,9 @@ impl LoopbackInterface {
|
|
|
smoltcp::iface::Interface::new(iface_config, &mut driver, Instant::now().into());
|
|
|
//设置网卡地址为127.0.0.1
|
|
|
iface.update_ip_addrs(|ip_addrs| {
|
|
|
- ip_addrs.push(IpCidr::new(IpAddress::v4(127, 0, 0, 1), 8)).expect("Push ipCidr failed: full");
|
|
|
+ ip_addrs
|
|
|
+ .push(IpCidr::new(IpAddress::v4(127, 0, 0, 1), 8))
|
|
|
+ .expect("Push ipCidr failed: full");
|
|
|
});
|
|
|
|
|
|
Arc::new(LoopbackInterface {
|