mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fixed the lack of warning when a non trusted SSL certificate is found if the user creates a new account without the protocol prefix in the URL and both HTTPS and HTTP are available in the server
This commit is contained in:
parent
3b0692cb38
commit
f3d61ef578
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ public class ConnectionCheckOperation extends RemoteOperation {
|
||||||
if (tryConnection(client, "https://" + mUrl + AccountUtils.STATUS_PATH)) {
|
if (tryConnection(client, "https://" + mUrl + AccountUtils.STATUS_PATH)) {
|
||||||
return new RemoteOperationResult(RemoteOperationResult.ResultCode.OK_SSL);
|
return new RemoteOperationResult(RemoteOperationResult.ResultCode.OK_SSL);
|
||||||
|
|
||||||
} else if (mLatestResult.isSslRecoverableException()) {
|
} else if (!mLatestResult.isSslRecoverableException()) {
|
||||||
|
|
||||||
Log.d(TAG, "establishing secure connection failed, trying non secure connection");
|
Log.d(TAG, "establishing secure connection failed, trying non secure connection");
|
||||||
client.setBaseUri(Uri.parse("http://" + mUrl + AccountUtils.STATUS_PATH));
|
client.setBaseUri(Uri.parse("http://" + mUrl + AccountUtils.STATUS_PATH));
|
||||||
|
|
Loading…
Reference in a new issue