WireGuard: preset peer DNS server with "Remote tunneled access"

This commit is contained in:
bergware
2021-05-09 08:23:46 +02:00
parent 48b29d2f56
commit 65659205d6

View File

@@ -616,7 +616,7 @@ function updatePeer(form,i,n,vtun) {
form.find('input[name="gui:ListenPort:'+i+'"]').attr('placeholder',form.find('input[name="gui:ListenPort:0"]').val()||netport[vtun]);
form.find('input[name="Address:'+i+'"]').attr('placeholder',"(_(not used)_)").removeAttr('required');
form.find('input[name="Address6:'+i+'"]').attr('placeholder',"(_(not used)_)").removeAttr('required');
form.find('input[name="DNS:'+i+'"]').attr('placeholder',"(_(not used)_)").removeAttr('required');
form.find('input[name="DNS:'+i+'"]').attr('placeholder',"(_(not used)_)").removeAttr('required').val('');
if (icon.hasClass('fa-chevron-down')) openClose(form,icon,'div.zone'+i);
break;
default: