mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 10:38:50 -05:00
Fixed: force DNS server selection to static when using static IP assignment
This commit is contained in:
@@ -235,7 +235,10 @@ function checkNetworkSettings(form,index,open) {
|
||||
privacy.prop('disabled',!disabled); if (!open) privacy.val(disabled ? 0 : 2);
|
||||
}
|
||||
if (dns && index==0) {
|
||||
if (!open) form.DHCP_KEEPRESOLV.value = disabled ? 'no' : 'yes';
|
||||
if (!open) {
|
||||
form.DHCP_KEEPRESOLV.value = disabled ? 'no' : 'yes';
|
||||
form.DHCP_KEEPRESOLV.disabled = !disabled;
|
||||
}
|
||||
checkDNSSettings(form);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user