diff --git a/IntentsExtension/Intents.swift b/IntentsExtension/Intents.swift index 248b8aa..f91b0e0 100644 --- a/IntentsExtension/Intents.swift +++ b/IntentsExtension/Intents.swift @@ -6,7 +6,7 @@ struct StartServiceIntent: AppIntent { static var title: LocalizedStringResource = "Start sing-box" static var description = - IntentDescription("Start or reload sing-box servie with specified profile") + IntentDescription("Start or reload sing-box service with specified profile") static var parameterSummary: some ParameterSummary { Summary("Start sing-box service with profile \(\.$profile).") diff --git a/Library/Network/OutboundGroup.swift b/Library/Network/OutboundGroup.swift index feb3e80..04891f0 100644 --- a/Library/Network/OutboundGroup.swift +++ b/Library/Network/OutboundGroup.swift @@ -27,7 +27,7 @@ public struct OutboundGroup: Codable, Hashable { } public static func == (lhs: OutboundGroup, rhs: OutboundGroup) -> Bool { - lhs.hashValue == rhs.hashValue + lhs.tag == rhs.tag && lhs.selected == rhs.selected && lhs.items.map(\.urlTestTime) == rhs.items.map(\.urlTestTime) } public var displayType: String {