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 }