diff --git a/TunnelKit/Sources/AppExtension/Transport/NWTCPConnectionState+Description.swift b/TunnelKit/Sources/AppExtension/Transport/NWTCPConnectionState+Description.swift index 939477f..aad6801 100644 --- a/TunnelKit/Sources/AppExtension/Transport/NWTCPConnectionState+Description.swift +++ b/TunnelKit/Sources/AppExtension/Transport/NWTCPConnectionState+Description.swift @@ -48,6 +48,7 @@ extension NWTCPConnectionState: CustomStringConvertible { case .disconnected: return "disconnected" case .invalid: return "invalid" case .waiting: return "waiting" + @unknown default: return "???" } } } diff --git a/TunnelKit/Sources/AppExtension/Transport/NWUDPSessionState+Description.swift b/TunnelKit/Sources/AppExtension/Transport/NWUDPSessionState+Description.swift index f03a5a0..cc750b6 100644 --- a/TunnelKit/Sources/AppExtension/Transport/NWUDPSessionState+Description.swift +++ b/TunnelKit/Sources/AppExtension/Transport/NWUDPSessionState+Description.swift @@ -48,6 +48,7 @@ extension NWUDPSessionState: CustomStringConvertible { case .preparing: return "preparing" case .ready: return "ready" case .waiting: return "waiting" + @unknown default: return "???" } } } diff --git a/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift b/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift index 7f7bb70..60e1b29 100644 --- a/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift +++ b/TunnelKit/Sources/AppExtension/TunnelKitProvider.swift @@ -627,6 +627,9 @@ extension TunnelKitProvider { case .LZO: return .lzo + + default: + break } } else if let se = error as? SessionError { switch se { diff --git a/TunnelKit/Sources/Core/Packet.swift b/TunnelKit/Sources/Core/Packet.swift index b934f61..19cd4d2 100644 --- a/TunnelKit/Sources/Core/Packet.swift +++ b/TunnelKit/Sources/Core/Packet.swift @@ -156,6 +156,7 @@ extension PacketCode: CustomStringConvertible { case .hardResetServerV2: return "HARD_RESET_SERVER_V2" case .dataV2: return "DATA_V2" case .unknown: return "UNKNOWN" + @unknown default: return "UNKNOWN" } } }