aboutsummaryrefslogtreecommitdiffstats
path: root/Sources/WireGuardKit/PacketTunnelSettingsGenerator.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* App: bump copyrightJason A. Donenfeld2023-02-151-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: bump copyright yearJason A. Donenfeld2021-06-171-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Kit: netcfg: add explicit IP mask routesJason A. Donenfeld2021-01-011-18/+19
| | | | | | | | | | | | macOS will use the wrong source address unless we add explicit routes that mention the self-pointing gateway. Actually, it won't add any implicit routes on its own, so in order to route the masks of the addresses, we have to add our own routes explicitly. However, this still doesn't fix the problem while inside of the network extension, even though it works outside it. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Kit: PacketTunnelSettingsGenerator: do not require DNS queries if no DNSJason A. Donenfeld2020-12-171-5/+9
| | | | | | | | | | | | | | | | | | | | Prior, we would set matchDomains=[""] even if the user didn't provide any DNS servers. This was kind of incoherent, but I guess we had in mind some kind of non-sensical leakproof scheme that never really worked anyway. NetworkExtension didn't like this, so setTunnelNetworkSettings would, rather than return an error, simply timeout and never call its callback function. But everything worked fine, so we had code in the UI to check to make sure everything was okay after 5 seconds or so of no callback. Recent changes made the timeout fatal on the network extension side, so rather than succeed, configs with no DNS server started erroring out, causing user reports. This commit attempts to handle the root cause of the timeout issue by not twiddling with DNS settings if no DNS server was specified. For now, however, it leaves the hard-timeout semantics in place. Reported-by: Filipe Mendonça <cfilipem@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: support DNS search domainsJason A. Donenfeld2020-12-151-0/+1
| | | | | | | This has been supported by Windows and Linux for quite some time. Add support here for iOS and macOS. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WireGuardKit: Conditionally turn on/off wireguard-goAndrej Mihajlov2020-12-111-23/+34
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* global: fix remaining swiftlint violationsJason A. Donenfeld2020-12-091-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: bump year in headerJason A. Donenfeld2020-12-041-1/+1
| | | | | | A bit overdue, but better late than never. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* WireGuardKit: Log XLAT resolution errorsAndrej Mihajlov2020-12-041-4/+15
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* WireGuardApp: integrate WireGuardKit sources directlyAndrej Mihajlov2020-12-031-0/+3
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* WireGuardKit: Rename WireGuardKitSwift -> WireGuardKitAndrej Mihajlov2020-12-031-0/+152
Signed-off-by: Andrej Mihajlov <and@mullvad.net>