aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-12-21 23:43:11 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-12-21 23:45:20 +0100
commit9295895e3a7b2d5b9313831512acd35fc90852df (patch)
tree5229fd1bd56303b6bc1586216a3716c111516021 /WireGuard/WireGuard/Tunnel
parentNuke trailing spaces (diff)
downloadwireguard-apple-9295895e3a7b2d5b9313831512acd35fc90852df.tar.xz
wireguard-apple-9295895e3a7b2d5b9313831512acd35fc90852df.zip
Fix paren typo
"I am very anti-paren." --Eric Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/WireGuard/Tunnel')
-rw-r--r--WireGuard/WireGuard/Tunnel/MockTunnels.swift2
-rw-r--r--WireGuard/WireGuard/Tunnel/TunnelsManager.swift4
2 files changed, 3 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/Tunnel/MockTunnels.swift b/WireGuard/WireGuard/Tunnel/MockTunnels.swift
index e6182570..97ceacb7 100644
--- a/WireGuard/WireGuard/Tunnel/MockTunnels.swift
+++ b/WireGuard/WireGuard/Tunnel/MockTunnels.swift
@@ -38,7 +38,7 @@ class MockTunnels {
let tunnelProviderManager = NETunnelProviderManager()
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
- tunnelProviderManager.localizedDescription = (tunnelConfiguration).interface.name
+ tunnelProviderManager.localizedDescription = tunnelConfiguration.interface.name
tunnelProviderManager.isEnabled = true
return tunnelProviderManager
diff --git a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
index 5fa8e7ee..8c7bbb32 100644
--- a/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
+++ b/WireGuard/WireGuard/Tunnel/TunnelsManager.swift
@@ -67,7 +67,7 @@ class TunnelsManager {
let tunnelProviderManager = NETunnelProviderManager()
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
- tunnelProviderManager.localizedDescription = (tunnelConfiguration).interface.name
+ tunnelProviderManager.localizedDescription = tunnelConfiguration.interface.name
tunnelProviderManager.isEnabled = true
activateOnDemandSetting.apply(on: tunnelProviderManager)
@@ -124,7 +124,7 @@ class TunnelsManager {
}
tunnelProviderManager.protocolConfiguration = NETunnelProviderProtocol(tunnelConfiguration: tunnelConfiguration)
- tunnelProviderManager.localizedDescription = (tunnelConfiguration).interface.name
+ tunnelProviderManager.localizedDescription = tunnelConfiguration.interface.name
tunnelProviderManager.isEnabled = true
let isActivatingOnDemand = !tunnelProviderManager.isOnDemandEnabled && activateOnDemandSetting.isActivateOnDemandEnabled