diff --git a/Package.swift b/Package.swift index 71b6c30..2055e39 100644 --- a/Package.swift +++ b/Package.swift @@ -16,7 +16,7 @@ let package = Package( ], dependencies: [ // Dependencies declare other packages that this package depends on. - .package(url: "https://github.com/apple/swift-nio.git", from: "2.73.0"), + .package(url: "https://github.com/apple/swift-nio.git", from: "2.81.0"), .package(url: "https://github.com/apple/swift-log.git", from: "1.5.3"), .package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.25.0"), .package(url: "https://github.com/apple/swift-collections.git", from: "1.1.1") diff --git a/Sources/LCLPing/Configuration.swift b/Sources/LCLPing/Configuration.swift index 46d031a..5246e92 100644 --- a/Sources/LCLPing/Configuration.swift +++ b/Sources/LCLPing/Configuration.swift @@ -13,7 +13,8 @@ import Foundation /// Type of reachability test that `LCLPing` supports -public enum PingType { +public enum PingType: String, CaseIterable, Identifiable { + public var id: Self { self } /// Perform reachability ping test through the ICMP protocol. case icmp