Skip to content

Commit

Permalink
Change BASE_REPO_URL to raw.githubusercontent.com
Browse files Browse the repository at this point in the history
Fixes Koenkk#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.
  • Loading branch information
mkrueger92 authored Feb 8, 2025
1 parent 50db043 commit 43428dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 43428dc

Please sign in to comment.