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/") }