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
committed by Will Tatam
parent 0c2ab7ef45
commit bd7735af3d
7 changed files with 66 additions and 7 deletions

View File

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