mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 14:15:09 +03:00
Some SwiftUI
This commit is contained in:
parent
b58f8e3852
commit
291b12b785
24 changed files with 901 additions and 89 deletions
|
@ -71,7 +71,7 @@ class ConfigurationProxy: PlatformItemSource {
|
|||
"Regex": "en.*",
|
||||
"Beacon": true,
|
||||
"Listen": true,
|
||||
]
|
||||
] as [String : Any]
|
||||
])
|
||||
}
|
||||
}
|
||||
|
@ -185,11 +185,7 @@ class ConfigurationProxy: PlatformItemSource {
|
|||
self.fix()
|
||||
if let data = self.data() {
|
||||
let providerProtocol = NETunnelProviderProtocol()
|
||||
#if os(iOS)
|
||||
providerProtocol.providerBundleIdentifier = "eu.neilalexander.yggdrasil.extension"
|
||||
#elseif os(OSX)
|
||||
providerProtocol.providerBundleIdentifier = "eu.neilalexander.yggdrasilmac.extension"
|
||||
#endif
|
||||
providerProtocol.providerConfiguration = [ "json": data ]
|
||||
providerProtocol.serverAddress = "yggdrasil"
|
||||
providerProtocol.username = self.get("PublicKey") as? String ?? self.get("SigningPublicKey") as? String ?? "(unknown public key)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue