summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-09-14 18:31:04 +0200
committerArne Schwabe <arne@rfc2549.org>2012-09-14 18:31:04 +0200
commit90c75dc44b9940339dc614f3f4f65349d35f5bc3 (patch)
treed3fe3dc6d9513bde1188d8f442a8ab3c9fef43bf /src/de
parent59c42db92e85f58300bec5adadb33e3f40617efb (diff)
Set persist-remote-ip when setting persist-tun
Diffstat (limited to 'src/de')
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index bc783fd0..4ac138da 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -339,8 +339,11 @@ public class VpnProfile implements Serializable{
if(mUseFloat)
cfg+= "float\n";
- if(mPersistTun)
+ if(mPersistTun) {
cfg+= "persist-tun\n";
+ cfg+= "# persist-tun also sets persist-remote-ip to avoid DNS resolve problem\n";
+ cfg+= "persist-remote-ip\n";
+ }
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean usesystemproxy = prefs.getBoolean("usesystemproxy", true);