mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +00:00
Verify certificates of web GUI (#919)
The check of the SDK version is wrong.
This commit is contained in:
parent
d4fc8d3605
commit
b09abf320e
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ public class WebGuiActivity extends SyncthingActivity
|
|||
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
||||
try {
|
||||
int sdk = android.os.Build.VERSION.SDK_INT;
|
||||
if (sdk >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
|
||||
if (sdk < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
|
||||
// The mX509Certificate field is not available for ICS- devices
|
||||
Log.w(TAG, "Skipping certificate check for devices <ICS");
|
||||
handler.proceed();
|
||||
|
|
Loading…
Reference in a new issue