android: Import NAT-T keepalive interval
authorTobias Brunner <tobias@strongswan.org>
Thu, 29 Jun 2017 10:57:07 +0000 (12:57 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 3 Jul 2017 08:33:29 +0000 (10:33 +0200)
src/frontends/android/app/src/main/java/org/strongswan/android/ui/VpnProfileImportActivity.java

index 5833258..0625b39 100644 (file)
@@ -491,6 +491,7 @@ public class VpnProfileImportActivity extends AppCompatActivity
                }
 
                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");
                if (split != null)
                {