Skip to content

Commit c3df11a

Browse files
committed
Fix HTTP check in AllowedHosts of Hub
1 parent 5a7fa9e commit c3df11a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

presentation/src/main/java/org/cryptomator/presentation/presenter/UnlockVaultPresenter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ class UnlockVaultPresenter @Inject constructor(
164164
Timber.tag("VaultListPresenter").e("Inconsistent hub config detected. Denying access to protect the user.")
165165
Toast.makeText(context(), R.string.error_hub_not_trustworthy, Toast.LENGTH_LONG).show()
166166
finish()
167-
} else if (configContainsAllowedHosts(unverifiedHubVaultConfig) && isHttpHost(unverifiedHubVaultConfig)) {
167+
} else if (configContainsAllowedHosts(unverifiedHubVaultConfig) && !isHttpHost(unverifiedHubVaultConfig)) {
168168
allowedHubHosts(unverifiedHubVaultConfig, vault)
169169
} else if (isCryptomatorCloud(unverifiedHubVaultConfig) && !isHttpHost(unverifiedHubVaultConfig)) {
170170
allowedHubHosts(unverifiedHubVaultConfig, vault)

0 commit comments

Comments
 (0)