Skip to content
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

Backward compatible support for IPv6 #1093

Merged
merged 4 commits into from
Jun 11, 2024

Conversation

veloman-yunkan
Copy link
Collaborator

This PR brings backward compatibility to #1074

Copy link

codecov bot commented Jun 3, 2024

Codecov Report

Attention: Patch coverage is 64.70588% with 6 lines in your changes missing coverage. Please review.

Project coverage is 41.36%. Comparing base (ae4b652) to head (75bddbf).
Report is 55 commits behind head on main.

Files with missing lines Patch % Lines
src/tools/networkTools.cpp 64.70% 1 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1093      +/-   ##
==========================================
+ Coverage   40.87%   41.36%   +0.49%     
==========================================
  Files          58       58              
  Lines        4223     4233      +10     
  Branches     2313     2316       +3     
==========================================
+ Hits         1726     1751      +25     
+ Misses       1024      994      -30     
- Partials     1473     1488      +15     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mgautierfr mgautierfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can also set the "old" methods as deprecated
(with https://github.com/kiwix/libkiwix/blob/main/include/common.h#L7-L14)

Else, agree with this PR

@veloman-yunkan
Copy link
Collaborator Author

Maybe we can also set the "old" methods as deprecated

It may be too soon. The nature of the enhancement is such that I feel fine with the old API staying around for some time. We can deprecate it later.

- Restored kiwix::getNetworkInterfaces() API to the version before
  support for IPv6 was introduced

- Renamed the new API method to kiwix::getNetworkInterfacesIPv4Or6()
The unit-tests only call the said functions and print their output
which should then be examined by the maintainer.
@kelson42 kelson42 force-pushed the network_tools_backward_compatibility branch from 1caa1fd to 75bddbf Compare June 11, 2024 09:19
@kelson42 kelson42 merged commit beab8d7 into main Jun 11, 2024
16 checks passed
@kelson42 kelson42 deleted the network_tools_backward_compatibility branch June 11, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants