add option to switch mDNS off/on

This commit is contained in:
MichaelDvP
2022-05-04 14:14:17 +02:00
parent d344924a3c
commit e00da5a721
5 changed files with 33 additions and 12 deletions

View File

@@ -56,7 +56,8 @@ const WiFiSettingsForm: FC = () => {
enableIPv6: false,
bandwidth20: false,
tx_power: 20,
nosleep: false
nosleep: false,
enableMDNS: true
});
}
setInitialized(true);
@@ -153,6 +154,11 @@ const WiFiSettingsForm: FC = () => {
label="Use Lower WiFi Bandwidth"
/>
<BlockFormControlLabel
control={<Checkbox name="enableMDNS" checked={data.enableMDNS} onChange={updateFormValue} />}
label="Enable mDNS Service"
/>
<Typography sx={{ pt: 2 }} variant="h6" color="primary">
General
</Typography>