From 8358bd20afbeb2490abdaed1c48c1561c6ed8755 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Tue, 20 May 2025 16:43:39 -0700 Subject: [PATCH] Turn off caching when reading network manager config files, as they may be modified by the nm cli command https://forum.virtualmin.com/t/virtualmin-virtualserver-ip-copy-to-services/133442/12 --- net/nm-lib.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/net/nm-lib.pl b/net/nm-lib.pl index 2371a5d5a..7120a789e 100644 --- a/net/nm-lib.pl +++ b/net/nm-lib.pl @@ -619,6 +619,7 @@ foreach my $iface (@fix) { sub read_nm_config { my ($f) = @_; +&unflush_file_lines($f); # NM may have modified this file my $lref = &read_file_lines($f, 1); my @rv; my $sect;