From c580099cce40212c14351c411de85d6cc2dc0151 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Fri, 14 Sep 2012 18:31:04 +0200 Subject: Set persist-remote-ip when setting persist-tun --- src/de/blinkt/openvpn/VpnProfile.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3