misc: proxy uuid

This commit is contained in:
mrFq1
2023-05-25 23:52:41 +08:00
parent e9e700362e
commit 33a4eab579
5 changed files with 6 additions and 10 deletions
@@ -97,7 +97,7 @@ class ClashProxySpeedHistory: Codable {
}
class ClashProxy: Codable {
let id = UUID().uuidString
let id: String?
let name: ClashProxyName
let type: ClashProxyType
let all: [ClashProxyName]?
@@ -145,7 +145,7 @@ class ClashProxy: Codable {
}()
private enum CodingKeys: String, CodingKey {
case type, all, history, now, name, udp, xudp, tfo
case type, all, history, now, name, udp, xudp, tfo, id
}
lazy var maxProxyNameLength: CGFloat = {