mirror of
https://github.com/yggdrasil-network/yggdrasil-ios.git
synced 2025-04-28 14:15:09 +03:00
Add ability to reset config
This commit is contained in:
parent
00419e6269
commit
b0c3d045a3
2 changed files with 37 additions and 43 deletions
|
@ -90,6 +90,15 @@ class ConfigurationProxy: PlatformItemSource {
|
|||
}
|
||||
}
|
||||
|
||||
public func reset() {
|
||||
self.json = MobileGenerateConfigJSON()
|
||||
try? self.convertToDict()
|
||||
self.fix()
|
||||
if var manager = self.manager {
|
||||
try? self.save(to: &manager)
|
||||
}
|
||||
}
|
||||
|
||||
public var multicastBeacons: Bool {
|
||||
get {
|
||||
let multicastInterfaces = self.get("MulticastInterfaces") as? [[String: Any]] ?? []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue