diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-05-09 17:57:40 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-05-09 17:57:40 +0200 |
commit | bebf2a9428e369a4963956ec752db27c457d9f6b (patch) | |
tree | a46475895895944a79b3452a1805ae31a7f40f4e /src/de/blinkt/openvpn/VpnProfile.java | |
parent | 224be050299691f2ca35d79f69aaf39d92fdbeaa (diff) |
Only try to write minivpn once per program lifetime.
Remove debug logging
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java index 227df5ba..26cf50bd 100644 --- a/src/de/blinkt/openvpn/VpnProfile.java +++ b/src/de/blinkt/openvpn/VpnProfile.java @@ -137,8 +137,6 @@ public class VpnProfile implements Serializable{ cfg+=cacheDir.getAbsolutePath(); cfg+="\n\n"; - cfg+="# Silences script security warning\n"; - cfg+="script-security 0\n\n"; boolean useTLSClient = (mAuthenticationType != TYPE_STATICKEYS); @@ -350,7 +348,11 @@ public class VpnProfile implements Serializable{ args.add("--config"); args.add(cacheDir.getAbsolutePath() + "/" + OVPNCONFIGFILE); - + // Silences script security warning + + args.add("script-security"); + args.add("0"); + return (String[]) args.toArray(new String[args.size()]); } |