From 43428dc4c527f0b3dea06d2c25df08463288c959 Mon Sep 17 00:00:00 2001 From: mkrueger92 <7305571+mkrueger92@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:51:09 +0100 Subject: [PATCH] Change BASE_REPO_URL to raw.githubusercontent.com Fixes #673 By using raw.githubusercontent.com over github.com it is possible to access files over IPv6. This helps in environments where IPv4 is not available. --- src/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.ts b/src/common.ts index 09d8d77f..4b6f6cb6 100644 --- a/src/common.ts +++ b/src/common.ts @@ -7,7 +7,7 @@ import {existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync} import path from 'path'; export const UPGRADE_FILE_IDENTIFIER = Buffer.from([0x1e, 0xf1, 0xee, 0x0b]); -export const BASE_REPO_URL = `https://github.com/Koenkk/zigbee-OTA/raw/`; +export const BASE_REPO_URL = `https://raw.githubusercontent.com/Koenkk/zigbee-OTA/`; export const REPO_BRANCH = 'master'; /** Images used by OTA upgrade process */ export const BASE_IMAGES_DIR = 'images';