mirror of
https://github.com/webmin/webmin.git
synced 2026-06-04 12:20:23 +01:00
Fix NetworkManager IPv6 DNS nameserver saving
https://github.com/webmin/webmin/issues/2559
This commit is contained in:
@@ -231,7 +231,7 @@ my $method6 = $iface->{'auto6'} ? "auto" :
|
||||
# Update nameservers
|
||||
my @ns = $iface->{'nameserver'} ? @{$iface->{'nameserver'}} : ();
|
||||
my @ns4 = grep { &check_ipaddress($_) } @ns;
|
||||
my @ns6 = grep { &check_ip6address($ns6) } @ns;
|
||||
my @ns6 = grep { &check_ip6address($_) } @ns;
|
||||
&save_nm_config($cfg, "ipv4", "dns", @ns4 ? join(" ", @ns4) : undef) if (@ns4);
|
||||
&save_nm_config($cfg, "ipv6", "dns", @ns6 ? join(" ", @ns6) : undef) if (@ns6);
|
||||
my @sr = $iface->{'search'} ? @{$iface->{'search'}} : ();
|
||||
|
||||
Reference in New Issue
Block a user