diff --git a/get-started/csi_recv_router/main/app_main.c b/get-started/csi_recv_router/main/app_main.c index 81ca500..bb25661 100644 --- a/get-started/csi_recv_router/main/app_main.c +++ b/get-started/csi_recv_router/main/app_main.c @@ -1750,8 +1750,8 @@ static int cmd_handle(const char *cmd, char *reply, size_t reply_size) /* OTA */ if (strncmp(cmd, "OTA ", 4) == 0) { const char *url = cmd + 4; - if (strncmp(url, "http://", 7) != 0) { - snprintf(reply, reply_size, "ERR OTA url must start with http://"); + if (strncmp(url, "http://", 7) != 0 && strncmp(url, "https://", 8) != 0) { + snprintf(reply, reply_size, "ERR OTA url must start with http:// or https://"); return strlen(reply); } if (s_ota_in_progress) {