diff --git a/DuckDuckGo/Application/AppDelegate.swift b/DuckDuckGo/Application/AppDelegate.swift index 0413ae7648..fd69a8fc1a 100644 --- a/DuckDuckGo/Application/AppDelegate.swift +++ b/DuckDuckGo/Application/AppDelegate.swift @@ -114,7 +114,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate { #endif private lazy var vpnRedditSessionWorkaround: VPNRedditSessionWorkaround = { - let ipcClient = TunnelControllerIPCClient() + let ipcClient = VPNControllerXPCClient.shared let statusReporter = DefaultNetworkProtectionStatusReporter( statusObserver: ipcClient.connectionStatusObserver, serverInfoObserver: ipcClient.serverInfoObserver, diff --git a/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/VPNRedditSessionWorkaround.swift b/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/VPNRedditSessionWorkaround.swift index a3f602f0b6..848f27c564 100644 --- a/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/VPNRedditSessionWorkaround.swift +++ b/DuckDuckGo/NetworkProtection/AppTargets/BothAppTargets/VPNRedditSessionWorkaround.swift @@ -26,11 +26,11 @@ import Common final class VPNRedditSessionWorkaround { private let accountManager: AccountManaging - private let ipcClient: TunnelControllerIPCClient + private let ipcClient: VPNControllerXPCClient private let statusReporter: NetworkProtectionStatusReporter init(accountManager: AccountManaging, - ipcClient: TunnelControllerIPCClient, + ipcClient: VPNControllerXPCClient = .shared, statusReporter: NetworkProtectionStatusReporter) { self.accountManager = accountManager self.ipcClient = ipcClient