summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-09-27 22:57:30 +0200
committerArne Schwabe <arne@rfc2549.org>2013-09-27 22:57:30 +0200
commit911f3855f184ecdb1339c1d8383ea19e86fe918e (patch)
tree8799a9b78e0a7f5c7e4162a410ce256135f535f4 /src/de/blinkt/openvpn/VpnProfile.java
parent4d9f6e5358b97ab104bc6c26b862ab290161568f (diff)
Implement changing log level on the fly in the log window, still needs some UI design love
--HG-- extra : rebase_source : 207343cea3b74cd07ebdf00f8ef443465d12c966
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index cb186316..2368d3ce 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -51,6 +51,7 @@ public class VpnProfile implements Serializable {
public static final String MINIVPN = "miniopenvpn";
private static final long serialVersionUID = 7085688938959334563L;
private static final String OVPNCONFIGFILE = "android.conf";
+ static final int MAXLOGLEVEL = 4;
public static String DEFAULT_DNS1 = "8.8.8.8";
public static String DEFAULT_DNS2 = "8.8.4.4";
@@ -109,7 +110,7 @@ public class VpnProfile implements Serializable {
public boolean mUseFloat = false;
public boolean mUseCustomConfig = false;
public String mCustomConfigOptions = "";
- public String mVerb = "1";
+ public String mVerb = "1"; //ignored
public String mCipher = "";
public boolean mNobind = false;
public boolean mUseDefaultRoutev6 = true;
@@ -183,8 +184,7 @@ public class VpnProfile implements Serializable {
cfg += "management-hold\n\n";
cfg += getVersionEnvString(context);
- cfg += "# Log window is better readable this way\n";
- cfg += "suppress-timestamps\n";
+ cfg += "parsable-output\n";
boolean useTLSClient = (mAuthenticationType != TYPE_STATICKEYS);
@@ -197,7 +197,8 @@ public class VpnProfile implements Serializable {
cfg += "tls-client\n";
- cfg += "verb " + mVerb + "\n";
+ //cfg += "verb " + mVerb + "\n";
+ cfg += "verb " + MAXLOGLEVEL + "\n";
if (mConnectRetryMax == null) {
mConnectRetryMax = "5";