Securing OTA update

- prevent settings change if not using private IP address or same subnet
- prevent OTA from differnet subnet if PIN is not set
- ability to revert firmware
This commit is contained in:
Blaž Kristan
2025-05-26 18:00:45 +02:00
parent f26733cd8c
commit dcd3e07273
7 changed files with 66 additions and 7 deletions

View File

@@ -610,6 +610,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
aOtaEnabled = request->hasArg(F("AO"));
#endif
//createEditHandler(correctPIN && !otaLock);
otaSameSubnet = request->hasArg(F("SU"));
}
}