#include <errno.h>
#include <unistd.h>
+#include "android_jni.h"
#include "android_service.h"
#include "android_dns_proxy.h"
#include "../charonservice.h"
int port;
bool certreq;
+ if (android_sdk_version >= ANDROID_LOLLIPOP)
+ { /* only try once and notify the GUI on Android 5+ where we have a blocking TUN device */
+ peer.keyingtries = 1;
+ }
+
server = this->settings->get_str(this->settings, "connection.server", NULL);
port = this->settings->get_int(this->settings, "connection.port",
IKEV2_UDP_PORT);