diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-09-14 18:31:04 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-09-14 18:31:04 +0200 |
commit | 90c75dc44b9940339dc614f3f4f65349d35f5bc3 (patch) | |
tree | d3fe3dc6d9513bde1188d8f442a8ab3c9fef43bf | |
parent | 59c42db92e85f58300bec5adadb33e3f40617efb (diff) |
Set persist-remote-ip when setting persist-tun
-rw-r--r-- | src/de/blinkt/openvpn/VpnProfile.java | 5 |
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); |