summaryrefslogtreecommitdiff
path: root/src/de/blinkt/openvpn/VpnProfile.java
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
commitc580099cce40212c14351c411de85d6cc2dc0151 (patch)
tree10939307895355b82ddf07ae09dd0c323681ca8c /src/de/blinkt/openvpn/VpnProfile.java
parent8cc11f2d6ca3a91b7e282f90fc50c334d5722ce0 (diff)
Set persist-remote-ip when setting persist-tun
Diffstat (limited to 'src/de/blinkt/openvpn/VpnProfile.java')
-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);