aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-03-18macos: TunnelsList: set allowsEmptySelection after making initial selectionJason A. Donenfeld1-1/+1
Otherwise we never get the event that the selection changed, so we don't wind up showing anything in the details pane. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-19macOS: ButtonedDetailViewController: Set min dimensionsRoopesh Chander1-0/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Tunnels list: Double-click to activate / deactivateRoopesh Chander1-0/+13
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Tunnels list: Don't allow empty selectionRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Remove unused class ControlRowRoopesh Chander1-61/+0
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Integrate Ethernet and Wi-Fi controls in one rowRoopesh Chander2-45/+82
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: View model should account for isActivateOnDemandEnabledRoopesh Chander2-3/+3
This is needed to correctly handle NETunnelProviderManager's isOnDemandEnabled property getting changed outside of the app. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Disable SSIDs field when adding a tunnelRoopesh Chander1-0/+1
It shouldn't be editable when the VPN prompt is shown. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Remove unused class PopupRowRoopesh Chander1-75/+0
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Auto-complete SSIDs based on currently connected SSIDRoopesh Chander1-0/+16
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Tunnel detail: List SSIDsRoopesh Chander1-1/+9
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Remove ActivateOnDemandSetting typeRoopesh Chander2-13/+6
The ActivateOnDemandOption type shall be used instead Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Tunnel detail: Show SSID infoRoopesh Chander1-3/+24
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: macOS: Support SSIDs in on demand activationRoopesh Chander3-22/+187
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Infrastructure for supporting SSID-based rulesRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18on-demand: Simplify OS-specific code for interface type selectionRoopesh Chander1-3/+3
Previously, the enum values themselves were different for iOS and macOS. With this commit, the enum values are common, and only how they're handled is specific to iOS and macOS. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Localize tooltipsRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Tunnel detail: Make the Activate button part of the list viewRoopesh Chander2-39/+106
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-18macOS: Nullify observationToken on prepareForReuse()Roopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-17ringlogger: support mpsc for singlefileJason A. Donenfeld2-7/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-17macOS: Tunnel detail: Activate / Deactivate is now a buttonRoopesh Chander1-35/+25
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-17macOS: Tunnel detail: Show the status in the list viewRoopesh Chander1-8/+58
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-17macOS: KeyValueImageRow classRoopesh Chander1-4/+44
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-10macOS: Ability to remove multiple tunnels at a timeRoopesh Chander2-13/+38
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-03-10macOS: Generalize NoTunnelsDetailVC into a ButtonedDetailVCRoopesh Chander3-47/+54
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-25Importing: macOS: Support importing of multiple files at a timeRoopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-24macOS: Tunnel edit: Disable user interaction when OS VPN prompt is shownRoopesh Chander1-0/+10
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-24macOS: Tunnel edit: s/populateTextFields()/populateFields()/g;Roopesh Chander1-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-22macOS: When programmatically selecting a tunnel, also scroll if requiredRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-22macOS: Replace NSSegmentedControl with NSPopUpButton and NSButtonRoopesh Chander1-43/+50
Thereby avoiding the hacky way of showing the menus. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-22macOS: Show 'quitting with active tunnel' only when appropriateRoopesh Chander3-13/+8
Not when logging off or when the machine's shutting down Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-21macOS: Fix removal of DNSes from AllowedIPs when DNS has changedRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-21macOS: On saving, update AllowedIPs with the current DNS serversRoopesh Chander1-1/+19
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-19macOS: Specify crypto complianceJason A. Donenfeld1-0/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-16macOS: Exclude private IPsRoopesh Chander2-0/+53
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-16ConfTextStorage: lowercase only onceJason A. Donenfeld1-5/+4
Also fix submodule regression. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-16ConfTextStorage: Let's keep the AllowedIPs and DNS servers as stringsRoopesh Chander1-8/+4
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-16ConfTextStorage: Make fieldType an enumRoopesh Chander1-11/+8
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-15ConfTextStorage: keep track of single peer state for exclude private IPsJason A. Donenfeld1-1/+59
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-15macOS: Tunnel detail: Set min width/heightRoopesh Chander1-0/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-15macOS: Tunnels list: Use constant width for the table viewRoopesh Chander2-3/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-15macOS: Show privacy notice on adding first tunnel0.0.20190207-3Jason A. Donenfeld3-8/+41
App store reviewers don't understand that this isn't a service. Revert this as soon as they come to their senses. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-12Preshared key field in the detail view should just say 'enabled'Roopesh Chander1-0/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-10macOS: Change keyboard shortcut for importing to Cmd+ORoopesh Chander2-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-10macOS: Adapt to the new applyConfiguration APIRoopesh Chander1-34/+57
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-08Global: fix swiftlint issuesJason A. Donenfeld1-1/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08Info.plist: Add missing key types0.0.20190207-1Jason A. Donenfeld1-0/+2
I worry that LSMinimumSystemVersion in the extension's plist might be problematic, since that same plist runs on macOS and iOS. We _might_ need to bifurcate. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08Key: Constant time encodingJason A. Donenfeld1-6/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08macOS: Show alert if exiting with an active tunnelRoopesh Chander1-3/+20
Instead of deactivating the tunnel. Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-02-07StatusItemController: Show animation when deactivatingJason A. Donenfeld1-3/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>