main: fix saving new_ipv4_address

This commit is contained in:
Astro 2020-10-11 01:58:28 +02:00
parent 83a266852a
commit a332b5fcdc

View File

@ -388,9 +388,10 @@ fn main() -> ! {
}); });
// Apply new IPv4 address // Apply new IPv4 address
new_ipv4_address.map(|ipv4_address| new_ipv4_address.map(|new_ipv4_address| {
server.set_ipv4_address(ipv4_address) server.set_ipv4_address(ipv4_address);
); ipv4_address = new_ipv4_address;
});
// Update watchdog // Update watchdog
wd.feed(); wd.feed();