Mirror only. Official repository is at https://git.zx2c4.com/wireguard-apple
Go to file
Jason A. Donenfeld 013d603109 Rework DNS and routes in network extension
The DNS resolver prior had useless comments, awful nesting, converted
bytes into strings and back into bytes, and generally made no sense.
That's been rewritten now.

But more fundumentally, this commit made the DNS resolver actually
accomplish its objective, by passing AI_ALL to it. It turns out, though,
that the Go library isn't actually using GAI in the way we need for
parsing IP addresses, so we actually need to do another round, this time
with hints flag as zero, so that we get the DNS64 address.

Additionally, since we're now binding sockets to interfaces, we can
entirely remove the excludedRoutes logic.
2018-12-28 19:38:03 +01:00
WireGuard Rework DNS and routes in network extension 2018-12-28 19:38:03 +01:00
wireguard-go@8fde8334dc Bump to latest wireguard-go release 2018-12-22 17:38:25 +01:00
wireguard-go-bridge NetworkExtension: rescope socket instead of tearing down socket 2018-12-26 01:17:55 +01:00
.gitignore All models now Equatable 2018-12-21 22:57:17 -06:00
.gitmodules First stab at Go bridge 2018-06-09 04:22:11 +02:00
COPYING Make license consistent 2018-11-07 01:26:32 +01:00
README.md Added swiftlint and fixed all errors (and a bunch, but not all, warnings) 2018-12-12 11:40:57 -06:00

README.md

WireGuard for iOS

Building

  • Clone this repo:
$ git clone https://git.zx2c4.com/wireguard-ios
$ cd wireguard-ios
  • Init and update submodule:
$ git submodule init
$ git submodule update
  • Rename and populate developer team ID file:
$ cp WireGuard/WireGuard/Config/Developer.xcconfig.template WireGuard/WireGuard/Config/Developer.xcconfig
$ vim WireGuard/WireGuard/Config/Developer.xcconfig
  • Install swiftlint:
$ brew install swiftlint
  • Open project in XCode:
$ open ./WireGuard/WireGuard.xcodeproj
  • Flip switches, press buttons, and make whirling noises until XCode builds it.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.