]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Don't set username on NETunnelProviderProtocol
authorRoopesh Chander <roop@roopc.net>
Sat, 22 Dec 2018 10:43:31 +0000 (16:13 +0530)
committerRoopesh Chander <roop@roopc.net>
Sat, 22 Dec 2018 10:43:31 +0000 (16:13 +0530)
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>
WireGuard/Shared/Model/NETunnelProviderProtocol+Extension.swift

index d2179e0adc9392eb857a52bc13270bee0c51cf99..df3fd04b10a9ca49d40902c80e3359a76f2aa6f0 100644 (file)
@@ -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? {