-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support IPv6 when downloading firmware images #673
Comments
No problem, could you make a PR? |
mkrueger92
added a commit
to mkrueger92/zigbee-OTA
that referenced
this issue
Feb 8, 2025
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.
mkrueger92
added a commit
to mkrueger92/zigbee-OTA
that referenced
this issue
Feb 8, 2025
@Koenkk: I have opened a PR as requested. Please have a look. Thanks for your effort. |
mkrueger92
added a commit
to mkrueger92/zigbee-OTA
that referenced
this issue
Feb 10, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
first of all, great project!
When running zigbee2mqtt in a IPv6 environment the firmware update is currently not possible.
The index files can be downloaded because the URL is hardcoded to this:
https://github.com/Koenkk/zigbee-herdsman-converters/blob/b91e0a8e60be1850f9d6bf10cbf47c23f10e0dcc/src/lib/ota.ts#L96
It references "raw.githubusercontent.com" which resolved to
But the URLs in the index files all link to "https://github.com/Koenkk/zigbee-OTA/raw/...".
Unfortunately,
github.com resolves to IPv4 only.
Therefore, I propose to change
zigbee-OTA/src/common.ts
Line 10 in dba31b0
https://github.com/Koenkk/zigbee-OTA/raw/
tohttps://raw.githubusercontent.com/Koenkk/zigbee-OTA/
.That would solve some problems in IPv6 only environments.
Thanks for considering this.
The text was updated successfully, but these errors were encountered: