]> git.ipfire.org Git - thirdparty/wireguard-apple.git/log
thirdparty/wireguard-apple.git
6 years agomacOS: Add WireGuardmacOS target
Roopesh Chander [Tue, 25 Dec 2018 13:03:28 +0000 (18:33 +0530)] 
macOS: Add WireGuardmacOS target

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoXcode: Add WireGuardGoBridgemacOS target
Roopesh Chander [Sat, 22 Dec 2018 12:47:52 +0000 (18:17 +0530)] 
Xcode: Add WireGuardGoBridgemacOS target

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoMove iOS images and storyboard into UI/iOS/ folder
Roopesh Chander [Sat, 22 Dec 2018 13:45:39 +0000 (19:15 +0530)] 
Move iOS images and storyboard into UI/iOS/ folder

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoXcode: Rename iOS targets to include an 'iOS' suffix
Roopesh Chander [Sat, 22 Dec 2018 12:46:43 +0000 (18:16 +0530)] 
Xcode: Rename iOS targets to include an 'iOS' suffix

But keep the PRODUCT_NAME as 'WireGuard', not 'WireGuardiOS'.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoxcconfig: Make app id platform-specific
Roopesh Chander [Wed, 21 Nov 2018 14:05:47 +0000 (19:35 +0530)] 
xcconfig: Make app id platform-specific

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoOn-Demand: Add support for macOS-specific values
Roopesh Chander [Sat, 22 Dec 2018 13:29:23 +0000 (18:59 +0530)] 
On-Demand: Add support for macOS-specific values

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agowireguard-go-bridge: Make CFLAGS_PREFIX work for macOS as well
Roopesh Chander [Sat, 22 Dec 2018 11:47:51 +0000 (17:17 +0530)] 
wireguard-go-bridge: Make CFLAGS_PREFIX work for macOS as well

For macOS, Xcode doesn't set DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX,
but does set DEPLOYMENT_TARGET_CLANG_FLAG_NAME.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoimport Foundation instead of UIKit wherever possible
Roopesh Chander [Sat, 22 Dec 2018 11:38:55 +0000 (17:08 +0530)] 
import Foundation instead of UIKit wherever possible

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoVersion bump 0.0.20190107-1
Jason A. Donenfeld [Tue, 8 Jan 2019 01:13:44 +0000 (02:13 +0100)] 
Version bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoPacketTunnelSettingsGenerator: use 127.0.0.1 as dummy address
Jason A. Donenfeld [Tue, 8 Jan 2019 00:51:12 +0000 (01:51 +0100)] 
PacketTunnelSettingsGenerator: use 127.0.0.1 as dummy address

It turns out that using 0.0.0.0 somehow conflicts with DNS lookups when
CLAT is in use.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoAvoid dynamic MTU calculations for now
Jason A. Donenfeld [Thu, 3 Jan 2019 18:24:30 +0000 (19:24 +0100)] 
Avoid dynamic MTU calculations for now

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoUpdate copyright
Jason A. Donenfeld [Wed, 2 Jan 2019 00:56:33 +0000 (01:56 +0100)] 
Update copyright

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoVersion bump 0.0.20181225-2
Jason A. Donenfeld [Fri, 28 Dec 2018 18:43:11 +0000 (19:43 +0100)] 
Version bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoRework DNS and routes in network extension
Jason A. Donenfeld [Fri, 28 Dec 2018 18:34:31 +0000 (19:34 +0100)] 
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.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoVersion bump 0.0.20181225-1
Jason A. Donenfeld [Wed, 26 Dec 2018 00:41:22 +0000 (01:41 +0100)] 
Version bump

A Christmas Special, for TestFlight, and possibly for release if things
go well there.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoNetworkExtension: rescope socket instead of tearing down socket
Jason A. Donenfeld [Tue, 25 Dec 2018 21:38:32 +0000 (22:38 +0100)] 
NetworkExtension: rescope socket instead of tearing down socket

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agominizip: Remove zip encryption code
Roopesh Chander [Tue, 25 Dec 2018 07:16:59 +0000 (12:46 +0530)] 
minizip: Remove zip encryption code

We can now remove -DNOCRYPT cflag while compiling

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnel edit: Fix crash
Roopesh Chander [Mon, 24 Dec 2018 07:28:35 +0000 (12:58 +0530)] 
Tunnel edit: Fix crash

This fixes a crash that happens when you:

1. Scroll to the end of the Edit screen
2. Delete a peer
3. Toggle the Activate On Demand switch

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoSwitchCell nits
Eric Kuck [Sat, 22 Dec 2018 21:32:29 +0000 (15:32 -0600)] 
SwitchCell nits

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoFix typo for simulator builds
Eric Kuck [Sat, 22 Dec 2018 20:32:39 +0000 (14:32 -0600)] 
Fix typo for simulator builds

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoRemove more comments
Roopesh Chander [Sat, 22 Dec 2018 19:01:20 +0000 (00:31 +0530)] 
Remove more comments

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoRely on availability of fd only after setting network settings
Jason A. Donenfeld [Sat, 22 Dec 2018 17:29:05 +0000 (18:29 +0100)] 
Rely on availability of fd only after setting network settings

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoBump to latest wireguard-go release
Jason A. Donenfeld [Sat, 22 Dec 2018 16:38:25 +0000 (17:38 +0100)] 
Bump to latest wireguard-go release

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoRetain aggressive socket reestablishment for now
Jason A. Donenfeld [Sat, 22 Dec 2018 14:45:09 +0000 (15:45 +0100)] 
Retain aggressive socket reestablishment for now

This can be reverted once we've done more testing.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoDon't set username on NETunnelProviderProtocol
Roopesh Chander [Sat, 22 Dec 2018 10:43:31 +0000 (16:13 +0530)] 
Don't set username on NETunnelProviderProtocol

The username corresponds to the Account field in iOS system VPN UI,
but if we don't set it, the field is not shown, so setting it isn't
really required.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnelErrors: Add alert text for PacketTunnelProviderError
Roopesh Chander [Sat, 22 Dec 2018 10:35:35 +0000 (16:05 +0530)] 
TunnelErrors: Add alert text for PacketTunnelProviderError

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnelStatus: Absorb NEVPNStatus+CustomStringConvertible
Roopesh Chander [Sat, 22 Dec 2018 10:16:28 +0000 (15:46 +0530)] 
TunnelStatus: Absorb NEVPNStatus+CustomStringConvertible

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoAlso refresh status
Jason A. Donenfeld [Sat, 22 Dec 2018 06:07:53 +0000 (07:07 +0100)] 
Also refresh status

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoReassign tunnelProvider if it changes from outside the app
Jason A. Donenfeld [Sat, 22 Dec 2018 05:56:12 +0000 (06:56 +0100)] 
Reassign tunnelProvider if it changes from outside the app

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoAll models now Equatable
Eric Kuck [Sat, 22 Dec 2018 04:41:54 +0000 (22:41 -0600)] 
All models now Equatable

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoClean up trailing whitespace
Jason A. Donenfeld [Sat, 22 Dec 2018 04:30:35 +0000 (05:30 +0100)] 
Clean up trailing whitespace

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoDo not crash if we can't get socket.fileDescriptor
Jason A. Donenfeld [Sat, 22 Dec 2018 04:12:53 +0000 (05:12 +0100)] 
Do not crash if we can't get socket.fileDescriptor

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoRemoving a tunnel from iOS's settings is now immediately reflected in app
Eric Kuck [Sat, 22 Dec 2018 03:59:43 +0000 (21:59 -0600)] 
Removing a tunnel from iOS's settings is now immediately reflected in app

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoLocalize remaining strings in network extension
Jason A. Donenfeld [Sat, 22 Dec 2018 02:41:54 +0000 (03:41 +0100)] 
Localize remaining strings in network extension

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoRTL support
Eric Kuck [Sat, 22 Dec 2018 02:37:22 +0000 (20:37 -0600)] 
RTL support

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoStrongly recommended now appears as placeholder for DNS when needed
Eric Kuck [Sat, 22 Dec 2018 01:52:51 +0000 (19:52 -0600)] 
Strongly recommended now appears as placeholder for DNS when needed

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoCombine double log invocations
Jason A. Donenfeld [Sat, 22 Dec 2018 01:21:07 +0000 (02:21 +0100)] 
Combine double log invocations

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoBump go bridge
Jason A. Donenfeld [Sat, 22 Dec 2018 00:58:02 +0000 (01:58 +0100)] 
Bump go bridge

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoAttempt to strongly recommend things
Jason A. Donenfeld [Sat, 22 Dec 2018 00:55:42 +0000 (01:55 +0100)] 
Attempt to strongly recommend things

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoMove model helpers to model directory
Jason A. Donenfeld [Sat, 22 Dec 2018 00:36:33 +0000 (01:36 +0100)] 
Move model helpers to model directory

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoFixes mock tunnels
Eric Kuck [Sat, 22 Dec 2018 00:35:01 +0000 (18:35 -0600)] 
Fixes mock tunnels

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoDo not set copyable back to true on reuse
Jason A. Donenfeld [Sat, 22 Dec 2018 00:31:59 +0000 (01:31 +0100)] 
Do not set copyable back to true on reuse

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoMove name from interface to tunnel
Jason A. Donenfeld [Fri, 21 Dec 2018 23:28:18 +0000 (00:28 +0100)] 
Move name from interface to tunnel

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoFix paren typo
Jason A. Donenfeld [Fri, 21 Dec 2018 22:43:11 +0000 (23:43 +0100)] 
Fix paren typo

"I am very anti-paren." --Eric

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoNuke trailing spaces
Jason A. Donenfeld [Fri, 21 Dec 2018 22:34:56 +0000 (23:34 +0100)] 
Nuke trailing spaces

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoproviderConfiguration is now a WgQuickConfig
Eric Kuck [Fri, 21 Dec 2018 21:16:09 +0000 (15:16 -0600)] 
providerConfiguration is now a WgQuickConfig

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoDo not require NetworkExtension to know its own name
Jason A. Donenfeld [Fri, 21 Dec 2018 21:05:47 +0000 (22:05 +0100)] 
Do not require NetworkExtension to know its own name

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoAll migration stuff moved to one gross file
Eric Kuck [Fri, 21 Dec 2018 18:51:14 +0000 (12:51 -0600)] 
All migration stuff moved to one gross file

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoSimplify versioning of stored data
Jason A. Donenfeld [Fri, 21 Dec 2018 17:58:06 +0000 (18:58 +0100)] 
Simplify versioning of stored data

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoGet rid of superflous isActivateOnDemandEnabled key
Jason A. Donenfeld [Fri, 21 Dec 2018 17:50:32 +0000 (18:50 +0100)] 
Get rid of superflous isActivateOnDemandEnabled key

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoUpdated NETunnelProvider save format
Eric Kuck [Fri, 21 Dec 2018 04:52:45 +0000 (22:52 -0600)] 
Updated NETunnelProvider save format

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoNE: simplify logic
Jason A. Donenfeld [Fri, 21 Dec 2018 14:56:03 +0000 (15:56 +0100)] 
NE: simplify logic

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoNE: Simplify DNS resolution
Roopesh Chander [Fri, 21 Dec 2018 13:53:16 +0000 (19:23 +0530)] 
NE: Simplify DNS resolution

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoLocalize all the things
Roopesh Chander [Tue, 18 Dec 2018 11:00:16 +0000 (16:30 +0530)] 
Localize all the things

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnel detail: iPad: Handle deletion of tunnel correctly
Roopesh Chander [Fri, 21 Dec 2018 12:32:18 +0000 (18:02 +0530)] 
Tunnel detail: iPad: Handle deletion of tunnel correctly

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoNE: Update listen port only when first interface changes
Roopesh Chander [Fri, 21 Dec 2018 12:02:44 +0000 (17:32 +0530)] 
NE: Update listen port only when first interface changes

When handling network path changes, change the listen port
only when the first interface has changed.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoNE: Change handling of bad domain names and Activate On Demand
Roopesh Chander [Fri, 21 Dec 2018 10:10:04 +0000 (15:40 +0530)] 
NE: Change handling of bad domain names and Activate On Demand

The solution implemented in commit b8c331c causes the tunnel to
remain in 'Activating' state, without the ability to cancel that.

So, in this commit, instead of retrying DNS silently on
Activated-On-Demand tunnels, we fail the startTunnel() silently.

To summarize, if activate-on-demand is on:
- If started from the WireGuard app, show error using lastErrorFile
mechanism, suggesting a way to turn off Activate On Demand
- If not started from WireGuard app, don't call displayMessage()
(don't show error to user) and silently fail starting the tunnel

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoAdded missing param in MockTunnels
Eric Kuck [Thu, 20 Dec 2018 19:51:44 +0000 (13:51 -0600)] 
Added missing param in MockTunnels

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agowireguard-go-bridge: SDK_DIR is not defined for simulator
Jason A. Donenfeld [Thu, 20 Dec 2018 19:47:42 +0000 (20:47 +0100)] 
wireguard-go-bridge: SDK_DIR is not defined for simulator

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoEnabled more swiftlint rules
Eric Kuck [Thu, 20 Dec 2018 17:22:37 +0000 (11:22 -0600)] 
Enabled more swiftlint rules

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoAdded a String->[String] helper
Eric Kuck [Thu, 20 Dec 2018 16:46:26 +0000 (10:46 -0600)] 
Added a String->[String] helper

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoTunnelErrors: Remove unused error
Roopesh Chander [Thu, 20 Dec 2018 12:57:56 +0000 (18:27 +0530)] 
TunnelErrors: Remove unused error

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnel edit: init() need not take a tunnelConfiguration argument
Roopesh Chander [Wed, 19 Dec 2018 11:00:34 +0000 (16:30 +0530)] 
Tunnel edit: init() need not take a tunnelConfiguration argument

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoNE: Log whether tunnel was activated from the app or not
Roopesh Chander [Wed, 19 Dec 2018 10:56:28 +0000 (16:26 +0530)] 
NE: Log whether tunnel was activated from the app or not

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoRemove non-helpful comments
Roopesh Chander [Wed, 19 Dec 2018 10:53:29 +0000 (16:23 +0530)] 
Remove non-helpful comments

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnel edit: Fix comment
Roopesh Chander [Wed, 19 Dec 2018 10:53:14 +0000 (16:23 +0530)] 
Tunnel edit: Fix comment

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnelsManager: If only Activate On Demand has changed, don't restart tunnel
Roopesh Chander [Wed, 19 Dec 2018 10:32:48 +0000 (16:02 +0530)] 
TunnelsManager: If only Activate On Demand has changed, don't restart tunnel

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoNE: Handle bad domain names and Activate On Demand
Roopesh Chander [Wed, 19 Dec 2018 10:08:00 +0000 (15:38 +0530)] 
NE: Handle bad domain names and Activate On Demand

This combination causes iOS to keep trying to bring up the tunnel,
leading to a lot of displayMessage() alerts.

In this fix, if we get a DNS resolution error in an Activate On Demand
enabled tunnel, we silently retry 9 times (with a 4-second delay before
each retry) and then show the displayMessage() alert.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoNE: No need for two startTunnel() methods
Roopesh Chander [Wed, 19 Dec 2018 07:40:42 +0000 (13:10 +0530)] 
NE: No need for two startTunnel() methods

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnelsManager: Handle waiting on a stale tunnel
Roopesh Chander [Tue, 18 Dec 2018 14:15:00 +0000 (19:45 +0530)] 
TunnelsManager: Handle waiting on a stale tunnel

If we have a stale tunnel on which we don't get status updates we rely
on a timer to update the status (see commit 34a7e5b).  Previously, if
the user tries to activate another tunnel, that resulted in both tunnels
waiting indefinitely. This commit fixes that.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoRemove buttons and text from LaunchScreen.storyboard
Roopesh Chander [Tue, 18 Dec 2018 14:33:27 +0000 (20:03 +0530)] 
Remove buttons and text from LaunchScreen.storyboard

With state restoration, we're not guaranteed that the
list view will get shown immediately after the launch screen.
So, generalize the launch screen as much as possible.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agos/Observervation/Observation/g;
Roopesh Chander [Tue, 18 Dec 2018 14:30:01 +0000 (20:00 +0530)] 
s/Observervation/Observation/g;

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnel detail: Update restorationIdentifier when tunnel name changes
Roopesh Chander [Tue, 18 Dec 2018 13:57:27 +0000 (19:27 +0530)] 
Tunnel detail: Update restorationIdentifier when tunnel name changes

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnelsManager: Add periods to end the system error messages
Roopesh Chander [Tue, 18 Dec 2018 10:17:17 +0000 (15:47 +0530)] 
TunnelsManager: Add periods to end the system error messages

Because they can be part of a multi-sentence message when displayed
in the alert.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoError handling: Add info on the underlying system error to error alerts
Roopesh Chander [Mon, 17 Dec 2018 13:26:26 +0000 (18:56 +0530)] 
Error handling: Add info on the underlying system error to error alerts

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoVersion bump 0.0.20181104-7
Jason A. Donenfeld [Mon, 17 Dec 2018 13:08:17 +0000 (14:08 +0100)] 
Version bump

This is our first release to the real app store.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoGot TunnelsManager back under the max file length by splitting out NEVPNStatus+Custom...
Eric Kuck [Mon, 17 Dec 2018 05:51:25 +0000 (23:51 -0600)] 
Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertible

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoPotential fix for insertRowAtIndexPath crash
Eric Kuck [Mon, 17 Dec 2018 03:11:33 +0000 (21:11 -0600)] 
Potential fix for insertRowAtIndexPath crash

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoMore proper way to get sdk root directory
Jason A. Donenfeld [Sun, 16 Dec 2018 23:23:11 +0000 (00:23 +0100)] 
More proper way to get sdk root directory

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoFurther generalize makefile
Jason A. Donenfeld [Sun, 16 Dec 2018 02:47:05 +0000 (03:47 +0100)] 
Further generalize makefile

This should allow us to eventually build on macOS

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoBump the go runtime
Jason A. Donenfeld [Sun, 16 Dec 2018 00:55:00 +0000 (01:55 +0100)] 
Bump the go runtime

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoImprove mock tunnels generation
Jason A. Donenfeld [Sun, 16 Dec 2018 00:51:14 +0000 (01:51 +0100)] 
Improve mock tunnels generation

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoProvide mock tunnels for the Simulator
Roopesh Chander [Sat, 15 Dec 2018 19:41:23 +0000 (01:11 +0530)] 
Provide mock tunnels for the Simulator

To help in generation of screenshots for the App Store

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoNuke duplicate file
Jason A. Donenfeld [Sat, 15 Dec 2018 05:21:49 +0000 (06:21 +0100)] 
Nuke duplicate file

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoBump the go runtime
Jason A. Donenfeld [Sat, 15 Dec 2018 05:13:33 +0000 (06:13 +0100)] 
Bump the go runtime

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoVersion bump 0.0.20181104-6
Jason A. Donenfeld [Sat, 15 Dec 2018 04:08:31 +0000 (05:08 +0100)] 
Version bump

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoFixed editable KeyValueCells being copyable
Eric Kuck [Sat, 15 Dec 2018 03:48:48 +0000 (21:48 -0600)] 
Fixed editable KeyValueCells being copyable
Fixed DNS servers not saving

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoFix confusing indentation
Jason A. Donenfeld [Sat, 15 Dec 2018 03:42:11 +0000 (04:42 +0100)] 
Fix confusing indentation

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoKeyValueCells now share code
Eric Kuck [Sat, 15 Dec 2018 02:02:37 +0000 (20:02 -0600)] 
KeyValueCells now share code

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoReorganized project structure
Eric Kuck [Fri, 14 Dec 2018 23:27:11 +0000 (17:27 -0600)] 
Reorganized project structure

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoMost similar views now shared between ViewControllers
Eric Kuck [Fri, 14 Dec 2018 23:12:59 +0000 (17:12 -0600)] 
Most similar views now shared between ViewControllers

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoPrettier log time format
Jason A. Donenfeld [Fri, 14 Dec 2018 23:08:54 +0000 (00:08 +0100)] 
Prettier log time format

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoSimplify logging tags
Jason A. Donenfeld [Fri, 14 Dec 2018 21:53:42 +0000 (22:53 +0100)] 
Simplify logging tags

This was roop's initial idea, and it turns out to be the better one, now
that we can pass cstrings more easily.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoFix tunnel remaining in 'Activating' state
Roopesh Chander [Fri, 14 Dec 2018 12:03:52 +0000 (17:33 +0530)] 
Fix tunnel remaining in 'Activating' state

It uses to remain in 'Activating' state when we don't get a status
update notification, for example, when turning on the tunnel repeatedly
without Internet connectivity.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoFix status switch weird state after an error occurs
Roopesh Chander [Fri, 14 Dec 2018 11:03:31 +0000 (16:33 +0530)] 
Fix status switch weird state after an error occurs

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoDeduplicate functions
Jason A. Donenfeld [Thu, 13 Dec 2018 23:01:50 +0000 (00:01 +0100)] 
Deduplicate functions

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoSimplify filemanager extension
Jason A. Donenfeld [Thu, 13 Dec 2018 22:25:18 +0000 (23:25 +0100)] 
Simplify filemanager extension

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoCan't -> cannot
Jason A. Donenfeld [Thu, 13 Dec 2018 22:17:05 +0000 (23:17 +0100)] 
Can't -> cannot

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoNE: Communicate last error to app through a shared file
Roopesh Chander [Thu, 13 Dec 2018 20:54:53 +0000 (02:24 +0530)] 
NE: Communicate last error to app through a shared file

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoTunnelsManager: startActivation() need not take a tunnelConfiguration
Roopesh Chander [Thu, 13 Dec 2018 18:31:41 +0000 (00:01 +0530)] 
TunnelsManager: startActivation() need not take a tunnelConfiguration

Signed-off-by: Roopesh Chander <roop@roopc.net>