Commit Graph

447 Commits

Author SHA1 Message Date
Roopesh Chander fe191b1eff Global: swiftlint autocorrect 2018-11-06 22:42:05 +05:30
Roopesh Chander 2b3347b294 Importing: Error out on file with unsupported file extension 2018-11-06 22:32:33 +05:30
Jason A. Donenfeld 040f0a25ea wireguard-go-bridge: take fd instead of fnptr 2018-11-06 16:27:25 +01:00
Jason A. Donenfeld 2a7aa578d2 Xcode: enable more warnings 2018-11-06 16:27:25 +01:00
Roopesh Chander 0f61703c34 Tunnel edit: TunnelEditTableViewKeyValueCell need not support a read-only mode now 2018-11-06 19:01:13 +05:30
Roopesh Chander 845305d8c8 Tunnel edit: A new cell class for the public key field, to make the value scrollable 2018-11-06 17:05:03 +05:30
Roopesh Chander 5ea1c5aea8 Tunnel detail: Refactor out the label scrolling into a separate UI class 2018-11-06 16:49:09 +05:30
Roopesh Chander e9044966bf Tunnel view model: Peers in a configuation may not share the same public key 2018-11-06 08:17:56 +05:30
Roopesh Chander e05a6c31b9 Parser: Peers in a configuation may not share the same public key 2018-11-06 08:17:56 +05:30
Jason A. Donenfeld e6a6decd79 Version bump
We update the build number, not the version number, so that test flight
doesn't need a new review.
2018-11-05 21:44:00 +01:00
Roopesh Chander 4c701a0e4f Parser: Address, DNS and AllowedIPs can have mutliple entries 2018-11-05 23:53:00 +05:30
Roopesh Chander c1286c95c3 QR Code: Dismiss the QR code screen when the name prompt is cancelled 2018-11-05 23:38:41 +05:30
Roopesh Chander 3e8af3fd19 Tunnel view model: No need to save if we already have a validated configuration object 2018-11-05 22:55:09 +05:30
Jason A. Donenfeld 12a4acef61 global: convert to Swift 4.2 2018-11-05 06:31:25 +01:00
Jason A. Donenfeld 145b524954 TunnelsManager: account for no or many endpoints 2018-11-05 06:23:26 +01:00
Jason A. Donenfeld bf6b2b6cb1 wireguard-go-bridge: work around DWARF generation issue
Golang bug 25148 upstream.
2018-11-05 04:47:11 +01:00
Jason A. Donenfeld 8958a04ba4 PacketTunnelProvider: clamp v6 addresses to /120 2018-11-05 03:11:11 +01:00
Jason A. Donenfeld 395ccf0e87 Settings: account for bottom padding on iPhone X
Reported-by: Jeffrey A. Donenfeld <jad@runblue.com>
2018-11-05 02:09:40 +01:00
Jason A. Donenfeld 54cfa3dba3 XCode: use old network extension ID 2018-11-04 05:42:25 +01:00
Jason A. Donenfeld ab14c0070c wireguard-go-bridge: xcode expects install target 2018-11-04 03:56:15 +01:00
Jason A. Donenfeld 1f7aaaa233 XCode: unify version strings 2018-11-04 03:51:50 +01:00
Jason A. Donenfeld 1ed21aa60c Settings: anchor logo to bottom 2018-11-04 03:37:18 +01:00
Roopesh Chander 8fb0baf5d2 Add a correct launch-screen storyboard 2018-11-04 02:31:04 +05:30
Jason A. Donenfeld 939f50be5f Revert "Settings: Swap table view sections"
This reverts commit 1108f82489.
2018-11-03 19:53:04 +01:00
Jason A. Donenfeld d91cac6327 Settings: simplify 2018-11-03 19:48:10 +01:00
Jason A. Donenfeld 355a555cc4 Global: run through swiftlint 2018-11-03 19:35:25 +01:00
Jason A. Donenfeld b3b63b5f5d Settings: limit size of logo 2018-11-03 19:20:21 +01:00
Jason A. Donenfeld 074e5e7063 Settings: use updated wireguard banner logo 2018-11-03 18:37:51 +01:00
Jason A. Donenfeld 4aba533630 TunnelsManager: restore sanity 2018-11-03 18:20:25 +01:00
Roopesh Chander c4d5f5975a Change version with 0.0.yyyymmdd versioning scheme 2018-11-03 19:28:29 +05:30
Roopesh Chander 215c56cec3 VPN: Make sure actions inside tunnelProvider completion handlers are done in the main queue
They should really already be in the main queue, but we do this just in case.
2018-11-03 19:26:28 +05:30
Roopesh Chander f4f1278a82 VPN: Start observing the status only if startTunnel() succeeds
This should fix the status change to .disconnected when we're resolving endpoints
2018-11-03 19:22:30 +05:30
Roopesh Chander 6fd9e7f53a VPN: We should never get a status change to .disconnected if we're resolving endpoints
But we do, which we'll fix subsequently
2018-11-03 18:58:27 +05:30
Roopesh Chander 395e6fcdda Revert "TunnelsManager: initialize observer on correct thread"
Rather, we'll make sure we always call startObservingTunnelStatus from
the main thread.

This reverts commit d16a6a167c.
2018-11-03 18:45:26 +05:30
Roopesh Chander c0c1fddb75 Settings: Show the captioned WireGuard logo at the end 2018-11-03 18:41:54 +05:30
Roopesh Chander 1108f82489 Settings: Swap table view sections 2018-11-03 17:53:50 +05:30
Roopesh Chander 4f287360a8 Remove empty image 2018-11-03 17:39:43 +05:30
Jeroen Leenarts f327edfc09 Add Wireguard logo with caption to project 2018-11-03 17:39:22 +05:30
Roopesh Chander bfdb3efa41 Tunnels list: Fix status switch look after flipping it off after an error 2018-11-03 17:28:16 +05:30
Roopesh Chander 0d4218f0c7 ErrorPresenter: showErrorAlert takes an onPresentated handler 2018-11-03 17:27:07 +05:30
Roopesh Chander 16c9f80ed8 Tunnels list: Should deselect the row when handling the selection 2018-11-03 16:05:02 +05:30
Roopesh Chander 49f055465b Tunnel list: Don't show the detail view after creating a config from scratch
So it's consistent with the other two "Add a configuration" menu items
2018-11-03 15:51:29 +05:30
Roopesh Chander 4ab4c79934 Ensure that all tunnel names are trimmed of whitespaces 2018-11-03 15:45:29 +05:30
Roopesh Chander eb122f87e2 Zip archive: Handle files within folders inside the zip 2018-11-03 15:37:31 +05:30
Jason A. Donenfeld 911e7156b3 Update readme 2018-11-03 07:25:43 +01:00
Jason A. Donenfeld d16a6a167c TunnelsManager: initialize observer on correct thread
Because of the callback recursion, this function needs to always be called from the right thread
2018-11-03 07:03:23 +01:00
Jason A. Donenfeld b81943aaac TunnelsManager: do not track currentTunnel
It's error prone and does not give us anything.
2018-11-03 06:22:57 +01:00
Jason A. Donenfeld 8bbc49015c TunnelsManager: do not change back to inactive if we are resolving the endpoint 2018-11-03 06:09:57 +01:00
Roopesh Chander 929470c693 Tunnels list: Remove separator lines in the table view 2018-11-03 10:26:15 +05:30
Roopesh Chander 12900e6af3 Tunnels list: Show an 'Add' button when there are no tunnels 2018-11-03 10:26:09 +05:30