1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

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

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