android: Import IKE/ESP proposals

We currently don't validate them here, only when used later will they
get parsed (which includes some checks).
This commit is contained in:
Tobias Brunner
2017-11-17 14:31:06 +01:00
parent a7c43544dd
commit 6403ad5457
@@ -497,6 +497,8 @@ public class VpnProfileImportActivity extends AppCompatActivity
}
}
profile.setIkeProposal(obj.optString("ike-proposal", null));
profile.setEspProposal(obj.optString("esp-proposal", null));
profile.setMTU(getInteger(obj, "mtu", Constants.MTU_MIN, Constants.MTU_MAX));
profile.setNATKeepAlive(getInteger(obj, "nat-keepalive", Constants.NAT_KEEPALIVE_MIN, Constants.NAT_KEEPALIVE_MAX));
JSONObject split = obj.optJSONObject("split-tunneling");