Add test for snowflake parameters.

This commit is contained in:
akwizgran
2022-09-28 16:18:08 +01:00
parent 32205ca6d3
commit b424d6f98e
2 changed files with 25 additions and 3 deletions

View File

@@ -94,7 +94,9 @@ class CircumventionProviderImpl implements CircumventionProvider {
return bridges;
}
private String getSnowflakeParams(String countryCode, boolean letsEncrypt) {
// Package access for testing
@SuppressWarnings("WeakerAccess")
String getSnowflakeParams(String countryCode, boolean letsEncrypt) {
Map<String, String> params = loadSnowflakeParams();
if (countryCode.isEmpty()) countryCode = DEFAULT_COUNTRY_CODE;
// If we have parameters for this country code, return them