mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51: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) {
|
public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {
|
||||||
try {
|
try {
|
||||||
int sdk = android.os.Build.VERSION.SDK_INT;
|
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
|
// The mX509Certificate field is not available for ICS- devices
|
||||||
Log.w(TAG, "Skipping certificate check for devices <ICS");
|
Log.w(TAG, "Skipping certificate check for devices <ICS");
|
||||||
handler.proceed();
|
handler.proceed();
|
||||||
|
|
Loading…
Reference in a new issue