android: Fix import of certificate request flag
This commit is contained in:
1 parent
a706058118
commit
81bace09a4
1 file changed
+1
-1
+1
-1
@@ -470,7 +470,7 @@ public class VpnProfileImportActivity extends AppCompatActivity
|
|||||||
profile.setRemoteId(remote.optString("id", null));
|
profile.setRemoteId(remote.optString("id", null));
|
||||||
profile.Certificate = decodeBase64(remote.optString("cert", null));
|
profile.Certificate = decodeBase64(remote.optString("cert", null));
|
||||||
|
|
||||||
if (remote.optBoolean("certreq", false))
|
if (!remote.optBoolean("certreq", true))
|
||||||
{
|
{
|
||||||
flags |= VpnProfile.FLAGS_SUPPRESS_CERT_REQS;
|
flags |= VpnProfile.FLAGS_SUPPRESS_CERT_REQS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user