diff options
author | Roopesh Chander <roop@roopc.net> | 2019-01-08 23:36:27 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-14 14:52:34 +0530 |
commit | 94c49229135456f30106b68f1893206af09c8aa7 (patch) | |
tree | f6c2fd7a3f49e69285e0177e3d45f1016119cd70 /WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | |
parent | Parsing: Error on duplicate entries (diff) | |
download | wireguard-apple-94c49229135456f30106b68f1893206af09c8aa7.tar.xz wireguard-apple-94c49229135456f30106b68f1893206af09c8aa7.zip |
Parsing: Always error on unrecognized keys
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index 42cc681..8143787 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -128,7 +128,7 @@ class TunnelEditViewController: NSViewController { return } do { - let tunnelConfiguration = try TunnelConfiguration(fromWgQuickConfig: textView.string, called: nameRow.value, ignoreUnrecognizedKeys: false) + let tunnelConfiguration = try TunnelConfiguration(fromWgQuickConfig: textView.string, called: nameRow.value) let onDemandSetting = ActivateOnDemandSetting.defaultSetting tunnelsManager.modify(tunnel: tunnel, tunnelConfiguration: tunnelConfiguration, activateOnDemandSetting: onDemandSetting) { [weak self] error in if let error = error { |