From 887591b4aab249fa22a35fc1307cf8d7e5269186 Mon Sep 17 00:00:00 2001 From: consuelita Date: Thu, 12 May 2022 17:30:00 -0500 Subject: [PATCH] Cleanup --- Sources/ShadowSwift/DarkStarServer.swift | 2 -- Sources/ShadowSwift/ShadowServer.swift | 1 - 2 files changed, 3 deletions(-) diff --git a/Sources/ShadowSwift/DarkStarServer.swift b/Sources/ShadowSwift/DarkStarServer.swift index 53f1417..4b67873 100644 --- a/Sources/ShadowSwift/DarkStarServer.swift +++ b/Sources/ShadowSwift/DarkStarServer.swift @@ -143,9 +143,7 @@ public class DarkStarServer } let persistentECDHData = DarkStar.sharedSecretToData(secret: persistentECDH) - let clientEphemeralPublicKeyData = clientEphemeralPublicKey.compactRepresentation! - let serverEphemeralPublicKey = serverEphemeralPrivateKey.publicKey let serverEphemeralPublicKeyData = serverEphemeralPublicKey.compactRepresentation! diff --git a/Sources/ShadowSwift/ShadowServer.swift b/Sources/ShadowSwift/ShadowServer.swift index e11e817..f3c8514 100644 --- a/Sources/ShadowSwift/ShadowServer.swift +++ b/Sources/ShadowSwift/ShadowServer.swift @@ -80,7 +80,6 @@ public class ShadowServer: Transmission.Listener guard let shadow = DarkStarServerConnection(connection: connection, endpoint: self.endpoint, parameters: .tcp, config: self.config, bloomFilter: self.bloomFilter, logger: self.log) else { log.error("ShadowServer.Error: incoming connection cannot be used to create a DarkStarServerConnection.") - throw ShadowServerError.darkStarConnectionError }