aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-08 23:36:27 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:34 +0530
commit94c49229135456f30106b68f1893206af09c8aa7 (patch)
treef6c2fd7a3f49e69285e0177e3d45f1016119cd70 /WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
parentParsing: Error on duplicate entries (diff)
downloadwireguard-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.swift2
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 {