aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-12-22 16:13:31 +0530
committerRoopesh Chander <roop@roopc.net>2018-12-22 16:13:31 +0530
commit2e37d511db9069d75107e7a7e3abd1b3bf3b1811 (patch)
treedfc6f54745ebd604536968d8d32e01bd59f15c14 /WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
parentTunnelErrors: Add alert text for PacketTunnelProviderError (diff)
downloadwireguard-apple-2e37d511db9069d75107e7a7e3abd1b3bf3b1811.tar.xz
wireguard-apple-2e37d511db9069d75107e7a7e3abd1b3bf3b1811.zip
Don't set username on NETunnelProviderProtocol
The username corresponds to the Account field in iOS system VPN UI, but if we don't set it, the field is not shown, so setting it isn't really required.
Diffstat (limited to 'WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift')
-rw-r--r--WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift3
1 files changed, 0 insertions, 3 deletions
diff --git a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
index d2179e0..df3fd04 100644
--- a/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
+++ b/WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift
@@ -32,9 +32,6 @@ extension NETunnelProviderProtocol {
} else {
serverAddress = "Multiple endpoints"
}
-
- //TODO(roopc): Why are we doing this? Just for kicks? Is it useful? Seems needless.
- username = tunnelConfiguration.name
}
func asTunnelConfiguration(called name: String? = nil) -> TunnelConfiguration? {