aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model
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
commitd29f47fc9b01f71fcf6eaf021ee5a4c2a9b9a939 (patch)
treedfc6f54745ebd604536968d8d32e01bd59f15c14 /WireGuard/Shared/Model
parentTunnelErrors: Add alert text for PacketTunnelProviderError (diff)
downloadwireguard-apple-d29f47fc9b01f71fcf6eaf021ee5a4c2a9b9a939.tar.xz
wireguard-apple-d29f47fc9b01f71fcf6eaf021ee5a4c2a9b9a939.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. Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/Shared/Model')
-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 d2179e0a..df3fd04b 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? {