aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/VPN/DNSResolver.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* DNSResolver: No need to resolve if the endpoint is already an IP addressRoopesh Chander2018-11-061-2/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Global: run through swiftlintJason A. Donenfeld2018-11-031-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* DNSResolver: Bugfix: Always call completion handlerRoopesh Chander2018-11-021-1/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* DNSResolver: getaddrinfo returns a sockaddr and inet_ntop takes strlenJason A. Donenfeld2018-11-021-4/+6
| | | | | | The way this was written before was totally wrong. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: fix up captialization in headersJason A. Donenfeld2018-10-301-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VPN: If we don't have to make a DNS request, we shouldn't enter that statusRoopesh Chander2018-10-291-0/+14
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Cache DNS resolutions while the app is in memoryRoopesh Chander2018-10-291-6/+22
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: DNSResolver: Resolve multiple endpoints in parallelRoopesh Chander2018-10-281-21/+32
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Fix DNS resolution APIRoopesh Chander2018-10-271-7/+22
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: DNSResolver: A class that does DNS resolution using getaddrinfoRoopesh Chander2018-10-271-0/+93
Signed-off-by: Roopesh Chander <roop@roopc.net>