mirror of
https://github.com/shadowsocks/ShadowsocksX-NG.git
synced 2026-11-14 02:04:13 +00:00
Migrate legacy enabled fields to v3 without preserving their semantics. Keep recoverable invalid imports visible and filter them during activation.
24 lines
714 B
Swift
24 lines
714 B
Swift
/// 组激活时因已知本地阻塞问题被跳过的服务器。
|
||
struct SkippedServer: Equatable, Sendable {
|
||
let id: NodeID
|
||
let reason: LeafInvalidationReason
|
||
}
|
||
|
||
/// 激活产出:活动目标身份 + 完整派生文档。组目标保持组 UUID(CONTEXT.md
|
||
/// 「Active target」),不被 sslocal 实际选中的后代替换。
|
||
struct RuntimeConfiguration: Equatable, Sendable {
|
||
let targetID: NodeID
|
||
let document: SslocalRuntimeDocument
|
||
let skippedServers: [SkippedServer]
|
||
|
||
init(
|
||
targetID: NodeID,
|
||
document: SslocalRuntimeDocument,
|
||
skippedServers: [SkippedServer] = []
|
||
) {
|
||
self.targetID = targetID
|
||
self.document = document
|
||
self.skippedServers = skippedServers
|
||
}
|
||
}
|