mirror of
https://github.com/aramperes/onetun.git
synced 2025-09-08 23:38:31 -04:00
log a better error regarding smoltcp max interface limit
This commit is contained in:
parent
e25c88410e
commit
c86784ed70
2 changed files with 6 additions and 2 deletions
|
@ -94,7 +94,9 @@ impl VirtualInterfacePoll for TcpVirtualInterface {
|
||||||
let mut iface = Interface::new(config, &mut device, Instant::now());
|
let mut iface = Interface::new(config, &mut device, Instant::now());
|
||||||
iface.update_ip_addrs(|ip_addrs| {
|
iface.update_ip_addrs(|ip_addrs| {
|
||||||
addresses.into_iter().for_each(|addr| {
|
addresses.into_iter().for_each(|addr| {
|
||||||
ip_addrs.push(addr).unwrap();
|
ip_addrs
|
||||||
|
.push(addr)
|
||||||
|
.expect("maximum number of IPs in TCP interface reached");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -106,7 +106,9 @@ impl VirtualInterfacePoll for UdpVirtualInterface {
|
||||||
let mut iface = Interface::new(config, &mut device, Instant::now());
|
let mut iface = Interface::new(config, &mut device, Instant::now());
|
||||||
iface.update_ip_addrs(|ip_addrs| {
|
iface.update_ip_addrs(|ip_addrs| {
|
||||||
addresses.into_iter().for_each(|addr| {
|
addresses.into_iter().for_each(|addr| {
|
||||||
ip_addrs.push(addr).unwrap();
|
ip_addrs
|
||||||
|
.push(addr)
|
||||||
|
.expect("maximum number of IPs in UDP interface reached");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue