From 6318d0bdcf2ff8420989f47624bca2a374c7e72d Mon Sep 17 00:00:00 2001 From: Fernando Bunn Date: Tue, 10 Oct 2023 20:02:04 +0100 Subject: [PATCH] Revert "Update Surrogates URL" This reverts commit a2b963ee41a101481666aebc3f3402e76ec9f511. --- DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift | 2 +- UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift b/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift index 3a867a0494..63c145684f 100644 --- a/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift +++ b/DuckDuckGo/AppDelegate/AppConfigurationURLProvider.swift @@ -27,7 +27,7 @@ struct AppConfigurationURLProvider: ConfigurationURLProviding { case .bloomFilterSpec: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom-spec.json")! case .bloomFilterExcludedDomains: return URL(string: "https://staticcdn.duckduckgo.com/https/https-mobile-v2-false-positives.json")! case .privacyConfiguration: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json")! - case .surrogates: return URL(string: "https://staticcdn.duckduckgo.com/surrogates.txt")! + case .surrogates: return URL(string: "https://duckduckgo.com/contentblocking.js?l=surrogates")! case .trackerDataSet: return URL(string: "https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json")! // In archived repo, to be refactored shortly (https://staticcdn.duckduckgo.com/useragents/social_ctp_configuration.json) case .FBConfig: return URL(string: "https://staticcdn.duckduckgo.com/useragents/")! diff --git a/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift b/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift index 7d3ec2766a..61282c9e66 100644 --- a/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift +++ b/UnitTests/AppDelegate/AppConfigurationURLProviderTests.swift @@ -26,7 +26,7 @@ final class AppConfigurationURLProviderTests: XCTestCase { XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterSpec).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-bloom-spec.json") XCTAssertEqual(AppConfigurationURLProvider().url(for: .bloomFilterExcludedDomains).absoluteString, "https://staticcdn.duckduckgo.com/https/https-mobile-v2-false-positives.json") XCTAssertEqual(AppConfigurationURLProvider().url(for: .privacyConfiguration).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/config/v3/macos-config.json") - XCTAssertEqual(AppConfigurationURLProvider().url(for: .surrogates).absoluteString, "https://staticcdn.duckduckgo.com/surrogates.txt") + XCTAssertEqual(AppConfigurationURLProvider().url(for: .surrogates).absoluteString, "https://duckduckgo.com/contentblocking.js?l=surrogates") XCTAssertEqual(AppConfigurationURLProvider().url(for: .trackerDataSet).absoluteString, "https://staticcdn.duckduckgo.com/trackerblocking/v5/current/macos-tds.json") XCTAssertEqual(AppConfigurationURLProvider().url(for: .FBConfig).absoluteString, "https://staticcdn.duckduckgo.com/useragents/") }