mirror of
https://github.com/unraid/webgui.git
synced 2026-05-21 05:39:37 -05:00
GUI network fixes
This commit is contained in:
@@ -206,6 +206,7 @@ function prepareSettings(form) {
|
||||
var protocol = $(form).find('select[name="PROTOCOL:0"]').val() || 'ipv4';
|
||||
if (protocol != 'ipv4') $(form).find('input[name^="DNS6_SERVER"]').val('_(Obtaining DNSv6 server)_...');
|
||||
}
|
||||
setTimeout(refresh,25000);
|
||||
return true;
|
||||
}
|
||||
function selectProtocol(form,port,index) {
|
||||
@@ -391,8 +392,8 @@ watchDHCP.on('message', function(data) {
|
||||
var form = $('form[name="'+id[0]+'_settings"]');
|
||||
var key = id[2].split('=');
|
||||
switch (id[1]) {
|
||||
case 'I': form.find('input[name="'+key[0]+'"]').val(key[1]); break;
|
||||
case 'S': form.find('select[name="'+key[0]+'"]').val(key[1]); break;
|
||||
case 'I': form.find('input[name="'+key[0].replace('-','_')+'"]').val(key[1]); break;
|
||||
case 'S': form.find('select[name="'+key[0].replace('-','_')+'"]').val(key[1]); break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
SERVICES="sshd nginx avahidaemon samba rpc nfsd ntpd"
|
||||
SERVICES="sshd avahidaemon samba rpc nfsd ntpd nginx"
|
||||
|
||||
for cmd in $SERVICES; do
|
||||
[[ $cmd == $1 ]] && option=renew || option=reload
|
||||
@@ -7,3 +7,4 @@ for cmd in $SERVICES; do
|
||||
/etc/rc.d/rc.$cmd $option >/dev/null 2>&1
|
||||
fi
|
||||
done
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user