From a332b5fcdc3f25c1a5be7da71109f04b0c96e7de Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 11 Oct 2020 01:58:28 +0200 Subject: [PATCH] main: fix saving new_ipv4_address --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index bd97ff8..7c14a5e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -388,9 +388,10 @@ fn main() -> ! { }); // Apply new IPv4 address - new_ipv4_address.map(|ipv4_address| - server.set_ipv4_address(ipv4_address) - ); + new_ipv4_address.map(|new_ipv4_address| { + server.set_ipv4_address(ipv4_address); + ipv4_address = new_ipv4_address; + }); // Update watchdog wd.feed();