Open myanesp opened 4 hours ago
Hello, I tried to solve the issue.
This is what I did:
Modified the code to support updating both IPv4 and IPv6 addresses. Added an environmental variable 'ENABLE_IPV6' to toggle IPv6 support. Updated the IP obtaining function, OVH API calls, and message sending to handle both IP versions.
You can review changes in this commit: https://github.com/lattaai13/myanesp-ovh-ip-updater-5/commit/362365ce98a954424357cc32865e9fb5ea8d5039.
[!CAUTION] Disclaimer: The commit was created by Latta AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
This issue was tried to solve for free by Latta AI - https://latta.ai/ourmission
If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
Support for updating IPv6, at the same time as IPv4.
I think the best option for compatibility is to add an environmental variable to activate/disable the IPv6 support.