]> git.ipfire.org Git - thirdparty/wireguard-apple.git/log
thirdparty/wireguard-apple.git
6 years agomacOS: Use tunnelOverheadBytes for automatic MTU in macOS
Roopesh Chander [Tue, 15 Jan 2019 20:21:50 +0000 (01:51 +0530)] 
macOS: Use tunnelOverheadBytes for automatic MTU in macOS

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Different status bar icon looks for different states
Roopesh Chander [Tue, 15 Jan 2019 19:30:42 +0000 (01:00 +0530)] 
macOS: Different status bar icon looks for different states

- Looks dimmed when no tunnel is active
- Looks normal when a tunnel is active
- Animates when a tunnel is activating

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Add About dialog
Roopesh Chander [Fri, 11 Jan 2019 18:50:02 +0000 (00:20 +0530)] 
macOS: Add About dialog

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Add app icon
Roopesh Chander [Fri, 11 Jan 2019 14:16:50 +0000 (19:46 +0530)] 
macOS: Add app icon

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Edit view: Auto hide editor scrollbars
Roopesh Chander [Fri, 11 Jan 2019 11:26:20 +0000 (16:56 +0530)] 
macOS: Edit view: Auto hide editor scrollbars

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: To set default size, change frame instead of min size
Roopesh Chander [Fri, 11 Jan 2019 11:21:40 +0000 (16:51 +0530)] 
macOS: To set default size, change frame instead of min size

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Fix editor scrolling
Roopesh Chander [Fri, 11 Jan 2019 11:17:20 +0000 (16:47 +0530)] 
macOS: Fix editor scrolling

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoDefault view controller sizes
Eric Kuck [Thu, 10 Jan 2019 10:18:56 +0000 (12:18 +0200)] 
Default view controller sizes

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoConfTextView: enable undo and disable junk
Jason A. Donenfeld [Thu, 10 Jan 2019 10:15:40 +0000 (11:15 +0100)] 
ConfTextView: enable undo and disable junk

Double space stil makes a period, unfortunately.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoCut/copy/paste now work
Eric Kuck [Thu, 10 Jan 2019 09:21:20 +0000 (11:21 +0200)] 
Cut/copy/paste now work

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoResync highlighter
Jason A. Donenfeld [Wed, 9 Jan 2019 19:59:43 +0000 (11:59 -0800)] 
Resync highlighter

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoSyntax highlighter color updates
Eric Kuck [Wed, 9 Jan 2019 09:24:26 +0000 (11:24 +0200)] 
Syntax highlighter color updates

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agomacOS: Support for on-demand activation
Roopesh Chander [Tue, 8 Jan 2019 22:44:08 +0000 (04:14 +0530)] 
macOS: Support for on-demand activation

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Quit menu item
Roopesh Chander [Tue, 8 Jan 2019 21:44:59 +0000 (03:14 +0530)] 
macOS: Quit menu item

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Get the app back in focus after macOS' VPN prompt
Roopesh Chander [Tue, 8 Jan 2019 21:34:41 +0000 (03:04 +0530)] 
macOS: Get the app back in focus after macOS' VPN prompt

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Fix 'Network' entry in menu
Roopesh Chander [Tue, 8 Jan 2019 21:19:46 +0000 (02:49 +0530)] 
macOS: Fix 'Network' entry in menu

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Ensure a tunnel is selected when '-' is clicked
Roopesh Chander [Tue, 8 Jan 2019 21:11:42 +0000 (02:41 +0530)] 
macOS: Ensure a tunnel is selected when '-' is clicked

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Handle errors from TunnelsManager.create()
Roopesh Chander [Tue, 8 Jan 2019 21:06:17 +0000 (02:36 +0530)] 
macOS: Handle errors from TunnelsManager.create()

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoiOS: Export log: Should present error from the main thread
Roopesh Chander [Tue, 8 Jan 2019 21:04:26 +0000 (02:34 +0530)] 
iOS: Export log: Should present error from the main thread

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Localize export sheets
Roopesh Chander [Tue, 8 Jan 2019 21:03:22 +0000 (02:33 +0530)] 
macOS: Localize export sheets

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Import sheet button should say 'Import'
Roopesh Chander [Tue, 8 Jan 2019 20:57:59 +0000 (02:27 +0530)] 
macOS: Import sheet button should say 'Import'

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Tunnel detail: Ensure long keys fit
Roopesh Chander [Tue, 8 Jan 2019 20:01:44 +0000 (01:31 +0530)] 
macOS: Tunnel detail: Ensure long keys fit

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Add empty tunnel pulldown menu implementation
Roopesh Chander [Tue, 8 Jan 2019 19:47:46 +0000 (01:17 +0530)] 
macOS: Manage tunnels: Add empty tunnel pulldown menu implementation

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Update detail view after editing
Roopesh Chander [Tue, 8 Jan 2019 19:22:11 +0000 (00:52 +0530)] 
macOS: Update detail view after editing

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Edit view: Update public key as you edit
Roopesh Chander [Tue, 8 Jan 2019 19:11:36 +0000 (00:41 +0530)] 
macOS: Edit view: Update public key as you edit

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoHighlighter: Report each key type separately
Roopesh Chander [Tue, 8 Jan 2019 18:16:55 +0000 (23:46 +0530)] 
Highlighter: Report each key type separately

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoParsing: Always error on unrecognized keys
Roopesh Chander [Tue, 8 Jan 2019 18:06:27 +0000 (23:36 +0530)] 
Parsing: Always error on unrecognized keys

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoParsing: Error on duplicate entries
Roopesh Chander [Tue, 8 Jan 2019 13:58:38 +0000 (19:28 +0530)] 
Parsing: Error on duplicate entries

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Edit view: Validate and save
Roopesh Chander [Tue, 8 Jan 2019 13:28:40 +0000 (18:58 +0530)] 
macOS: Edit view: Validate and save

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Refactor config file parsing
Roopesh Chander [Tue, 8 Jan 2019 10:14:17 +0000 (15:44 +0530)] 
macOS: Refactor config file parsing

- To report more fine grained errors
- To make the parse errors conform to WireGuardAppError

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoSyntax highlighter color updates
Eric Kuck [Tue, 8 Jan 2019 10:35:06 +0000 (12:35 +0200)] 
Syntax highlighter color updates

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agoHighlighter: use original file from contrib/examples/highlighter
Jason A. Donenfeld [Mon, 7 Jan 2019 17:02:23 +0000 (12:02 -0500)] 
Highlighter: use original file from contrib/examples/highlighter

This makes it easier to track updates and make diffs. Also, disable
things we don't support in the NetworkExtension app.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
6 years agoAdded syntax highlighting conf textview
Eric Kuck [Mon, 7 Jan 2019 12:47:27 +0000 (14:47 +0200)] 
Added syntax highlighting conf textview

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
6 years agomacOS: Tunnel edit view
Roopesh Chander [Sun, 6 Jan 2019 13:21:06 +0000 (18:51 +0530)] 
macOS: Tunnel edit view

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Rename *Cell to *Row
Roopesh Chander [Mon, 7 Jan 2019 07:34:50 +0000 (13:04 +0530)] 
macOS: Rename *Cell to *Row

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: On adding the first tunnel, select it
Roopesh Chander [Sat, 5 Jan 2019 13:48:36 +0000 (19:18 +0530)] 
macOS: On adding the first tunnel, select it

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Consolidate presenting of the import panel
Roopesh Chander [Sat, 5 Jan 2019 13:46:16 +0000 (19:16 +0530)] 
macOS: Consolidate presenting of the import panel

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Handle the case when there are no tunnels
Roopesh Chander [Sat, 5 Jan 2019 12:54:45 +0000 (18:24 +0530)] 
macOS: Manage tunnels: Handle the case when there are no tunnels

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Present tunnel activation errors from the window when possible
Roopesh Chander [Sat, 5 Jan 2019 08:56:20 +0000 (14:26 +0530)] 
macOS: Present tunnel activation errors from the window when possible

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Present errors as a sheet when applicable
Roopesh Chander [Sat, 5 Jan 2019 08:46:28 +0000 (14:16 +0530)] 
macOS: Present errors as a sheet when applicable

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Remove tunnel
Roopesh Chander [Fri, 4 Jan 2019 14:39:28 +0000 (20:09 +0530)] 
macOS: Manage tunnels: Remove tunnel

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Update tunnels list on changes
Roopesh Chander [Fri, 4 Jan 2019 13:03:46 +0000 (18:33 +0530)] 
macOS: Manage tunnels: Update tunnels list on changes

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Export log pulldown menu implementation
Roopesh Chander [Fri, 4 Jan 2019 12:41:49 +0000 (18:11 +0530)] 
macOS: Manage tunnels: Export log pulldown menu implementation

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Export tunnels pulldown menu implementation
Roopesh Chander [Fri, 4 Jan 2019 10:55:57 +0000 (16:25 +0530)] 
macOS: Manage tunnels: Export tunnels pulldown menu implementation

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Xcode: Add ablity to save files
Roopesh Chander [Fri, 4 Jan 2019 10:52:51 +0000 (16:22 +0530)] 
macOS: Xcode: Add ablity to save files

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Select first tunnel on showing the window
Roopesh Chander [Thu, 3 Jan 2019 17:46:44 +0000 (23:16 +0530)] 
macOS: Manage tunnels: Select first tunnel on showing the window

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Set window title
Roopesh Chander [Thu, 3 Jan 2019 17:37:53 +0000 (23:07 +0530)] 
macOS: Manage tunnels: Set window title

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Import pulldown menu implementation
Roopesh Chander [Thu, 3 Jan 2019 17:18:05 +0000 (22:48 +0530)] 
macOS: Manage tunnels: Import pulldown menu implementation

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Localize pulldown menu items
Roopesh Chander [Thu, 3 Jan 2019 17:10:30 +0000 (22:40 +0530)] 
macOS: Manage tunnels: Localize pulldown menu items

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Show open panel as sheet on manage window
Roopesh Chander [Thu, 3 Jan 2019 14:13:52 +0000 (19:43 +0530)] 
macOS: Show open panel as sheet on manage window

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Adjust spacings
Roopesh Chander [Thu, 3 Jan 2019 14:04:50 +0000 (19:34 +0530)] 
macOS: Manage tunnels: Adjust spacings

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Add a box around the detail view
Roopesh Chander [Thu, 3 Jan 2019 14:04:28 +0000 (19:34 +0530)] 
macOS: Manage tunnels: Add a box around the detail view

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Show status checkbox and edit button
Roopesh Chander [Thu, 3 Jan 2019 13:40:31 +0000 (19:10 +0530)] 
macOS: Manage tunnels: Show status checkbox and edit button

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: s/macMenuStatus/macStatus/g;
Roopesh Chander [Thu, 3 Jan 2019 12:19:32 +0000 (17:49 +0530)] 
macOS: s/macMenuStatus/macStatus/g;

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Tunnel detail view
Roopesh Chander [Wed, 2 Jan 2019 19:46:27 +0000 (01:16 +0530)] 
macOS: Manage tunnels: Tunnel detail view

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Add a filler button
Roopesh Chander [Wed, 2 Jan 2019 13:27:09 +0000 (18:57 +0530)] 
macOS: Manage tunnels: Add a filler button

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Fix list view look
Roopesh Chander [Wed, 2 Jan 2019 12:52:07 +0000 (18:22 +0530)] 
macOS: Manage tunnels: Fix list view look

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels: Add buttons to the bottom of the list view
Roopesh Chander [Tue, 1 Jan 2019 21:34:01 +0000 (03:04 +0530)] 
macOS: Manage tunnels: Add buttons to the bottom of the list view

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Manage tunnels window: Tunnels list
Roopesh Chander [Tue, 1 Jan 2019 19:37:46 +0000 (01:07 +0530)] 
macOS: Manage tunnels window: Tunnels list

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Capitalize All Rights Reserved
Roopesh Chander [Sat, 29 Dec 2018 18:28:51 +0000 (23:58 +0530)] 
macOS: Capitalize All Rights Reserved

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Show status as disabled menu items
Roopesh Chander [Sat, 29 Dec 2018 14:09:14 +0000 (19:39 +0530)] 
macOS: Show status as disabled menu items

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Ability to activate / deactivate a tunnel
Roopesh Chander [Sat, 29 Dec 2018 13:14:29 +0000 (18:44 +0530)] 
macOS: Ability to activate / deactivate a tunnel

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Ability to import tunnels from file
Roopesh Chander [Sat, 29 Dec 2018 10:03:41 +0000 (15:33 +0530)] 
macOS: Ability to import tunnels from file

For now, the open panel shows as a separate window.
Later, we'll open it as a sheet on the 'Manage tunnels' window.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoiOS: Refactor importFromFile
Roopesh Chander [Fri, 28 Dec 2018 20:06:46 +0000 (01:36 +0530)] 
iOS: Refactor importFromFile

So that it can be used in macOS as well

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Add tunnel management menu items
Roopesh Chander [Fri, 28 Dec 2018 19:12:02 +0000 (00:42 +0530)] 
macOS: Add tunnel management menu items

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Specify app is an 'agent'
Roopesh Chander [Fri, 28 Dec 2018 14:03:34 +0000 (19:33 +0530)] 
macOS: Specify app is an 'agent'

This hides the app from the Dock, while still enabling the app
to come to the foreground if required.

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Create status bar with tunnel names
Roopesh Chander [Fri, 28 Dec 2018 13:59:09 +0000 (19:29 +0530)] 
macOS: Create status bar with tunnel names

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Add status bar icon
Roopesh Chander [Fri, 28 Dec 2018 12:52:07 +0000 (18:22 +0530)] 
macOS: Add status bar icon

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Remove MainMenu.xib
Roopesh Chander [Sun, 25 Nov 2018 13:12:51 +0000 (18:42 +0530)] 
macOS: Remove MainMenu.xib

When there's no xib, we should explicitly set the app delegate, so we
override NSApplication and set the app delegate in NSApplication.shared

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: NE: Add entitlements for making network connections
Roopesh Chander [Fri, 28 Dec 2018 08:12:25 +0000 (13:42 +0530)] 
macOS: NE: Add entitlements for making network connections

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoMake app groups work on both iOS and macOS
Roopesh Chander [Thu, 27 Dec 2018 19:03:31 +0000 (00:33 +0530)] 
Make app groups work on both iOS and macOS

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Add Network Extensions capability to app
Roopesh Chander [Thu, 27 Dec 2018 14:23:15 +0000 (19:53 +0530)] 
macOS: Add Network Extensions capability to app

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoiOS: Fix WireGuardNetworkExtensioniOS target
Roopesh Chander [Thu, 27 Dec 2018 13:57:59 +0000 (19:27 +0530)] 
iOS: Fix WireGuardNetworkExtensioniOS target

- Rename WireGuardNetworkExtension.entitlements to WireGuardNetworkExtension_iOS.entitlements

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agoiOS: Fix WireGuardiOS target
Roopesh Chander [Thu, 27 Dec 2018 13:55:14 +0000 (19:25 +0530)] 
iOS: Fix WireGuardiOS target

- Move Info.plist and entitlements to WireGuard/UI/iOS/

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Fix WireGuardmacOS target
Roopesh Chander [Thu, 27 Dec 2018 13:44:15 +0000 (19:14 +0530)] 
macOS: Fix WireGuardmacOS target

- Include non-UI code from iOS while building
- Add run scripts
- Move files to WireGuard/UI/macOS
- Set Swift-Obj-C bridging header

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Fix WireGuardNetworkExtensionmacOS target
Roopesh Chander [Thu, 27 Dec 2018 12:11:54 +0000 (17:41 +0530)] 
macOS: Fix WireGuardNetworkExtensionmacOS target

- Build using common network extension code
- Add run scripts
- Set Info.plist to common network extension's Info.plist
- Move entitlements to common network extension folder
- Remove Xcode-generated macOS network extension code
- Set Swift-Obj-C bridging header

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: WireGuardNetworkExtensionmacOS depends on WireGuardGoBridgemacOS
Roopesh Chander [Thu, 27 Dec 2018 10:32:09 +0000 (16:02 +0530)] 
macOS: WireGuardNetworkExtensionmacOS depends on WireGuardGoBridgemacOS

Signed-off-by: Roopesh Chander <roop@roopc.net>
6 years agomacOS: Add WireGuardNetworkExtensionmacOS target
Roopesh Chander [Thu, 27 Dec 2018 10:14:49 +0000 (15:44 +0530)] 
macOS: Add WireGuardNetworkExtensionmacOS target

Signed-off-by: Roopesh Chander <roop@roopc.net>
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>