qaul / qaul.net

Internet Independent Wireless Mesh Communication App
https://qaul.net
GNU Affero General Public License v3.0
496 stars 63 forks source link

feat : Add IPv6 multiaddress #551

Closed Harshil-Jani closed 1 year ago

Harshil-Jani commented 1 year ago

Solving #547

Harshil-Jani commented 1 year ago

IPv4 and IPv6 MultiAddresses are now configured for both LAN and Internet. What we would do for writing an automatic upgrade procedure ? I was reading some answers over here https://stackoverflow.com/questions/232347/how-should-i-implement-an-auto-updater and I think we would need to check if the configuration file now has IPv6 added to it or not and based on it we can run our script to update.

Please let me know what could be a possible solution for this.

MathJud commented 1 year ago

libqaul has an own upgrade module in libqaul/src/utilities/upgrade, which is executed before loading the configuration, as a wrong file structure of the configuration results in a panic. The decision of the upgrade procedure is bound to the library version. We can bind it to the next version beta 15.

Each upgrade procedure is contained in an own folder. You can take the upgrade to beta 9 as a reference.

MathJud commented 1 year ago

The IPv6 works good, I just made the amount of interfaces per connection module dynamically configurable by using a for loop going through the configuration array.