Closed binarynoise closed 9 months ago
Android programs need to be built with the Android NDK if they use some of the system APIs. I will take a look at it.
Oh, ok. I could also try Termux or the like if they have an already working curl where they could enable http3.
Or maybe an option for a dns fallback or general custom dns server could work
It seems to require a relatively large modification to be compatible with Android's DNS. There is a workaround though, I compiled in c-ares to resolve DNS without using the system API. For Android, modify $HOME/.curlrc
--dns-servers 1.1.1.1,8.8.8.8
--cacert /data/data/com.termux/files/usr/etc/tls/cert.pem
Now you can get this compiled version from the Actions of the test: https://github.com/stunnel/static-curl/actions/runs/7230001570 This change will be included in the next release.
Works great, thank you!
The reason could be that
/etc/resolv.conf
doesn't exist../curl
is your curl,curl
is the android curl (lineage os)Adding
-v
s to the command doesn't print something different