feat(client/cordova/apple): [1980] randomize list of dns severs
Just add a simple shuffle for list of dns servers
According to issue https://github.com/Jigsaw-Code/outline-apps/issues/1980
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
fixed tests
@fortuna sorry for disturbing you, but this fix also will help our app with millions of users — a lot of them use Outpost VPN and this VPN by default use only 1.1.1.1 DNS server and we see using our client metrics that sometimes a small ratio of DNS requests is throttled (and then failed) by 1.1.1.1 and our users facing issues within our app
We investigated a lot into this issue (we spend a weeks into it) and DNS server rotation (not only 1.1.1.1) will definitely improve network stability requests for people using Outline VPN as their main VPN service