Lower the libcur dependency requirement from >=7.64.0 to >=7.55.0 #177
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
In some systems which is unable to update regularly, OpenWRT for example, current curl version requirement (>=7.64.0) is too high, this makes this project un-compatable to these old systems.
What has been done
I separated
curl_url/curl_url_set/curl_url_get/curl_url_cleanup
functions, which is used insrc/main.c:44:hostname_from_url
, from curl 8.11.1 to provide this project ability to compiled with curl >= 7.55.0.Effects
After lower the dependency requirment, old systems shipped about 7 years ago, cloud compile this project.
When curl version is less than 7.62,
curlite.c
is compiled to provide missing functions in this project, when curl version is equal or above 7.62 the newest one will be used,curlite.c
will not take effects.Proves
I've tested the modified code on a 7x24 running router about 4 days, no problems has been found ;)
Here is a log that I compile the modified code with curl 7.55.0 (current minimum requirent, which is released about 7 years ago).