Commit Graph

326 Commits

Author SHA1 Message Date
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
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
Roopesh Chander
4bb45397f1 Tunnels list: Show a busy indicator before the tunnels are loaded 2018-11-03 10:25:47 +05:30
Roopesh Chander
c6df88c893 Tunnels list: The Add and Settings buttons should be no-ops until the tunnels are loaded 2018-11-03 10:25:47 +05:30
Roopesh Chander
e332d6cf0e Tunnel edit: Use layoutMarginsGuide instead of constants 2018-11-03 10:25:47 +05:30
Jason A. Donenfeld
c025ff8024 TunnelsManager: fix use of arrayslice in addMultiple 2018-11-03 04:37:56 +01:00
Jason A. Donenfeld
aa5634ee27 TunnelsManager: get rid of name set
Instead, tunnels itself should be a sorted-set. For now it's a list,
which is probably fine though.
2018-11-03 03:53:08 +01:00
Jason A. Donenfeld
2fdbe1c492 TunnelsManager: get rid of index management
No need for premature optimization. There aren't that many tunnels most
of the time, and calling sort on a partially sorted array is fast.
2018-11-03 03:43:09 +01:00
Jason A. Donenfeld
6c737545aa Global: no periods at the end of error messages 2018-11-03 03:43:09 +01:00
Jason A. Donenfeld
83eeb289c2 Import: rework addMultiple logic 2018-11-03 03:43:09 +01:00
Roopesh Chander
7077dac4e9 Tunnel detail: In the key-value cell, make the value label scrollable horizontally 2018-11-02 23:48:27 +05:30
Roopesh Chander
36292d570a Tunnel edit: Ensure all key-value fields have a placeholder text 2018-11-02 18:20:32 +05:30
Roopesh Chander
8fee05969e DNSResolver: Bugfix: Always call completion handler 2018-11-02 18:10:51 +05:30
Roopesh Chander
c04773276a Info.plist: Update document icons and description 2018-11-02 17:40:46 +05:30
Roopesh Chander
dd04633b1d Info.plist: Document type UTI should be consistent with exported UTI 2018-11-02 17:40:46 +05:30
Roopesh Chander
0e61d55d3e Info.plist: Register zip file for open-in 2018-11-02 17:40:46 +05:30
Roopesh Chander
2c999c09de Info.plist: Add .conf extension to document type 2018-11-02 17:40:46 +05:30
Roopesh Chander
2abcba8031 Add document icon 2018-11-02 17:39:43 +05:30
Roopesh Chander
1a169d5cc6 Add app icons 2018-11-02 16:11:24 +05:30
Roopesh Chander
db8c6cbc21 Handle cell reuse in showing delete buttons in red 2018-11-02 13:24:10 +05:30
Roopesh Chander
c643cd1478 Table edit: Show/hide 'Exclude Private IPs' instead of enable/disable 2018-11-02 13:12:10 +05:30
Roopesh Chander
864394cf81 Tunnel view model: If there's just one peer, populate the scratchpad on init
So that exclude private IPs can be computed correctly.
2018-11-02 13:09:45 +05:30
Roopesh Chander
c61491391e Tunnel view model: Initialize peerData.numberOfPeers 2018-11-02 12:05:58 +05:30
Jason A. Donenfeld
799c2d96cd DNSResolver: getaddrinfo returns a sockaddr and inet_ntop takes strlen
The way this was written before was totally wrong.
2018-11-02 05:34:17 +01:00
Jason A. Donenfeld
2267079367 NetworkExtension: check isTunnelClosed before packet existence 2018-11-01 22:01:52 +01:00
Jason A. Donenfeld
73f4a90dee Global: OK over Ok 2018-11-01 21:22:12 +01:00
Roopesh Chander
2bb42ac3ec Deletion buttons are shown in red 2018-11-01 23:53:09 +05:30
Roopesh Chander
bf2031776b Tunnel edit: Highlight erroring field keys in red 2018-11-01 23:45:48 +05:30
Roopesh Chander
9f98e172b6 Tunnels list: Swipe left to delete 2018-11-01 23:45:48 +05:30
Jason A. Donenfeld
42948b2816 Global: fix up strings 2018-11-01 19:01:43 +01:00
Roopesh Chander
a0b24f53b5 QR code: Fix what happens when an error is shown 2018-11-01 22:08:01 +05:30
Roopesh Chander
79672fa920 NE: Show an alert when someone tries to start the VPN from iOS Settings 2018-11-01 22:08:01 +05:30
Jason A. Donenfeld
ae992c3deb Export: fix up export format 2018-11-01 17:31:50 +01:00
Roopesh Chander
479f04a579 Tunnel errors: Consolidate tunnel activation errors into ErrorPresenter 2018-11-01 16:58:33 +05:30
Roopesh Chander
e222c8391e TunnelsManager: Better errors 2018-11-01 16:57:40 +05:30