Verify certificates of web GUI (#919)

The check of the SDK version is wrong.
This commit is contained in:
Unrud 2017-07-17 05:24:06 +02:00 committed by Felix Ableitner
parent d4fc8d3605
commit b09abf320e
1 changed files with 1 additions and 1 deletions

View File

@ -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();