Add dhcpd VLAN parameter to restrict dhcpd to given VLAN

This commit is contained in:
logicog
2026-03-09 22:11:29 +01:00
parent aa12adc098
commit 855d587243
6 changed files with 26 additions and 4 deletions
+6 -1
View File
@@ -42,9 +42,14 @@ async function ipSub() {
}
async function dhcpdSub() {
var dhcpd_cmd = "dhcpd off";
if (document.getElementById('dhcpd').checked)
if (document.getElementById('dhcpd').checked) {
dhcpd_cmd = "dhcpd on";
var v=document.getElementById('dhcpd_vid').value
if (v && v!= 0)
dhcpd_cmd = dhcpd_cmd + " " + v;
}
try {
console.log("Sending: ", dhcpd_cmd);
const response = await fetch('/cmd', {
method: 'POST',
body: dhcpd_cmd